#include <api68.h>
The api68_init_t must be properly filled before calling the api68_init() function.
api68_init_t init; memset(&init,0,sizeof(init)); init.alloc = malloc; init.free = free;
Data Fields | |
| unsigned int | sampling_rate |
| sampling rate in hz (non 0 value overrides config default). | |
| void *(* | alloc )(unsigned int) |
| dynamic memory allocation handler (malloc). | |
| void(* | free )(void *) |
| dynamic memory free handler (free). | |
| const char * | user_path |
| user resource path (0 default). | |
| const char * | shared_path |
| shared resource path (0 default). | |
| debugmsg68_t | debug |
| debug message handler. | |
| void * | debug_cookie |
| debug cookie. | |
| unsigned int api68_init_t::sampling_rate |
sampling rate in hz (non 0 value overrides config default).
The real used value is set by api68_init().
| void*(* api68_init_t::alloc)(unsigned int) |
| void(* api68_init_t::free)(void *) |
| const char* api68_init_t::user_path |
| const char* api68_init_t::shared_path |
shared resource path (0 default).
debug message handler.
debug cookie.
1.5.2