sc68fordevelopers  2.2.1
Data Fields
api68_init_t Struct Reference

API initialization. More...

#include <api68.h>

Data Fields

unsigned int sampling_rate
 sampling rate in hz (non 0 value overrides config default). More...
 
void *(* alloc )(unsigned int)
 dynamic memory allocation handler (malloc). More...
 
void(* free )(void *)
 dynamic memory free handler (free). More...
 
const char * user_path
 user resource path (0 default). More...
 
const char * shared_path
 shared resource path (0 default). More...
 
debugmsg68_t debug
 debug message handler. More...
 
void * debug_cookie
 debug cookie. More...
 

Detailed Description

API initialization.

The api68_init_t must be properly filled before calling the api68_init() function.

memset(&init,0,sizeof(init));
init.alloc = malloc;
init.free = free;

Field Documentation

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)

dynamic memory allocation handler (malloc).

See also
SC68set_alloc().
void(* api68_init_t::free) (void *)

dynamic memory free handler (free).

See also
SC68set_free().
const char* api68_init_t::user_path

user resource path (0 default).

See also
SC68rsc_set_user().
const char* api68_init_t::shared_path

shared resource path (0 default).

See also
SC68rsc_set_shared().
debugmsg68_t api68_init_t::debug

debug message handler.

void* api68_init_t::debug_cookie

debug cookie.


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