LDKAssetSourceOrigin

typedef enum LDKAssetSourceOrigin{
  LDK_ASSET_SOURCE_ORIGIN_NONE=0,
  LDK_ASSET_SOURCE_ORIGIN_PACKAGE,
  LDK_ASSET_SOURCE_ORIGIN_FILESYSTEM,
}LDKAssetSourceOrigin;
Function in ldk_asset_source.h

ldk_asset_source_file_write

Write the asset source file.

LDK_API bool ldk_asset_source_file_write(
 const LDKAssetSource *source,
 const char *path,
 const void *data,
 u64 size
);

Parameters

const LDKAssetSource *source
Source object or source data for this operation.
const char *path
Path identifying the file or resource.
const void *data
Source data or system-owned context for this operation.
u64 size
Size of the data or region, in bytes where applicable.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_asset_source.h

ldk_asset_source_initialize

Initialize the asset source.

LDK_API bool ldk_asset_source_initialize(
 LDKAssetSource *source,
 const char *runtree_path
);

Parameters

LDKAssetSource *source
Source object or source data for this operation.
const char *runtree_path
Path of the runtree.

Returns

True if the operation succeeds; false otherwise.