User API
Macros
-
MYLIB_VISIBILITY(mode)
Set the visibility of a symbol.
- Parameters:
mode – Visibility mode (hidden, default, etc.).
-
MYLIB_EXTERN
Declare a symbol as external.
-
MYLIB_INTERN
Declare a symbol as internal.
Functions
-
int mylib_init(mylib_t *mylib, int *argc, char **argv[])
Initialize mylib. Returns a pointer to a newly allocated mylib_t.
- Parameters:
mylib – Pointer to the mylib_t handle which will be initialized.
argc – Pointer to the number of commnad line arguments.
argv – Pointer to the array of command line arguments.
- Returns:
int
-
int mylib_finalize(mylib_t *mylib)
Finalize mylib. Frees the memory allocated for the mylib_t returned by mylib_init() and sets the pointer to NULL.
- Parameters:
mylib – Pointer to the mylib_t to be freed.