Typedef in ldk_material_io.h

LDKMaterialDiagnosticFn

Callback for reporting a material I/O diagnostic.

typedef void(*LDKMaterialDiagnosticFn)(const char *message, void *user);

Parameters

message
Message displayed to the user.
user
Opaque caller-supplied data passed to the callback.
Struct in ldk_material_io.h

LDKMaterialIOResult

typedef struct LDKMaterialIOResult{
  char error[512];
}LDKMaterialIOResult;
Function in ldk_material_io.h

ldk_material_desc_read

Read the material desc.

LDK_API bool ldk_material_desc_read(
 const LDKMaterialIOContext *context,
 const TMLDocument *doc,
 const TMLNode *fields,
 LDKMaterialDesc *out_desc,
 LDKMaterialIOResult *result
);

Parameters

const LDKMaterialIOContext *context
Context used by this operation.
const TMLDocument *doc
Doc used by this operation.
const TMLNode *fields
TML node containing serialized fields.
LDKMaterialDesc *out_desc
Receives the descriptor.
LDKMaterialIOResult *result
Optional result structure populated with error details.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_material_io.h

ldk_material_desc_write

Write the material desc.

LDK_API bool ldk_material_desc_write(
 const LDKMaterialIOContext *context,
 const LDKMaterialDesc *desc,
 XStrBuilder *out,
 u32 indent,
 LDKMaterialIOResult *result
);

Parameters

const LDKMaterialIOContext *context
Context used by this operation.
const LDKMaterialDesc *desc
Description or configuration for this operation.
XStrBuilder *out
Output object or buffer receiving the result.
u32 indent
Indentation depth used while serializing output.
LDKMaterialIOResult *result
Optional result structure populated with error details.

Returns

True if the operation succeeds; false otherwise.