Type Definition ion_c_sys::ION_READER_CONTEXT_CALLBACK[][src]

type ION_READER_CONTEXT_CALLBACK = Option<unsafe extern "C" fn(context: *mut c_void, imports: *mut ION_COLLECTION) -> iERR>;
Expand description

A function that may be called by the reader upon a change to the stream’s symbol table context.

For example, an ION_READER_CONTEXT_CALLBACK function may be used to wrap ion_writer_add_imported_tables, with the user context pointing to a writer instance, in order to update the writer’s symbol table context in lockstep with the reader.

@param context - User-provided context, e.g., a hWRITER. @param imports - A collection of ION_SYMBOL_TABLE_IMPORT, representing the shared symbol tables in the new symbol table context.