Transformer SDK For C  6.2.11.309924
_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 Sat Aug 26 2017 12:36:32 for Transformer SDK For C