Struct in ldk_package.h

LDKPackageWriter

typedef struct LDKPackageWriter LDKPackageWriter;
Function in ldk_package.h

ldk_package_writer_create

Create the package writer. An unfinished output file is removed if the writer is destroyed before finalization.

LDK_API LDKPackageWriter * ldk_package_writer_create(const char *path);

Parameters

const char *path
Path identifying the file or resource.

Returns

Pointer to the requested object or data; NULL when unavailable.

Function in ldk_package.h

ldk_package_writer_finalize

Finish writing the package and its manifest.

LDK_API bool ldk_package_writer_finalize(LDKPackageWriter *writer);

Parameters

LDKPackageWriter *writer
Package writer being updated.

Returns

True if the operation succeeds; false otherwise.