The registering of callback functions

Functions

int mp3splt_set_message_function (splt_state *state, void(*message_cb)(const char *, splt_message_type))
int mp3splt_set_progress_function (splt_state *state, void(*progress_cb)(splt_progress *p_bar))
int mp3splt_set_silence_level_function (splt_state *state, void(*get_silence_cb)(long time, float level, void *user_data), void *user_data)
int mp3splt_set_split_filename_function (splt_state *state, void(*file_cb)(const char *, int))

Function Documentation

int mp3splt_set_message_function ( splt_state state,
void(*)(const char *, splt_message_type message_cb 
)

Register the function that is to be called if we got a text message.

Parameters:
state The central struct libmp3splt keeps all its data in
message_cb The callback function
Returns:
The error code

Register the function that is to be called if we got a text message.

Parameters:
state The central structure this library keeps all its data in
message_cb The callback function
Returns:
The error code if any error occours

Definition at line 394 of file mp3splt.c.

References splt_struct::put_message, and splt_state::split.

int mp3splt_set_progress_function ( splt_state state,
void(*)(splt_progress *p_bar)  progress_cb 
)

Register the progress bar callback.

Parameters:
state The central struct libmp3splt keeps all its data in
progress_cb The callback function
Returns:
The error code

Register the progress bar callback.

Parameters:
state The central structure this library keeps all its data in
progress_cb The callback function
Returns:
The error code if any error occours

Definition at line 440 of file mp3splt.c.

References splt_struct::p_bar, splt_progres::progress, and splt_state::split.

int mp3splt_set_silence_level_function ( splt_state state,
void(*)(long time, float level, void *user_data)  get_silence_cb,
void *  data 
)

Register the callback for the function that calculates silence levels.

Parameters:
state The central structure this library keeps all its data in
get_silence_cb The callback function
Returns:
The error code if any error occours

Definition at line 463 of file mp3splt.c.

int mp3splt_set_split_filename_function ( splt_state state,
void(*)(const char *, int)  file_cb 
)

Register the function that is to be called on creation of a output file.

Parameters:
state The central struct libmp3splt keeps all its data in
file_cb The callback function
Returns:
The error code

Generated on 3 Aug 2012 for libmp3splt by  doxygen 1.6.1