Transformer SDK For C  7.1.9.29929-d422075
_userinfo Struct Reference

Defines the functions required to support userdata preservation. More...

Data Fields

char * desc
 
void *(* fileread )(FILE *fp, char *name)
 
void(* filewrite )(FILE *fp, void *data)
 
unsigned int id
 
char * ident
 
int(* strprint )(char *dest, size_t len, void *data)
 

Detailed Description

Defines the functions required to support userdata preservation.

See also
register_userdata_funcs
Examples:
demo-userdata2.c.

Field Documentation

char* _userinfo::desc

Longer description

Examples:
demo-userdata2.c.
void*(* _userinfo::fileread) (FILE *fp, char *name)

Read the data from a file

Examples:
demo-userdata2.c.
void(* _userinfo::filewrite) (FILE *fp, void *data)

Write the data to a file, this should be machine parsable

Examples:
demo-userdata2.c.
unsigned int _userinfo::id

Identifier

Examples:
demo-userdata2.c.
char* _userinfo::ident

Short usage string

Examples:
demo-userdata2.c.
int(* _userinfo::strprint) (char *dest, size_t len, void *data)

Function called to write the user data into a string. This doesn't have to be in a machine parsable format

Examples:
demo-userdata2.c.

The documentation for this struct was generated from the following file:

Generated on Mon Jul 20 2020 19:17:22 for Transformer SDK For C