mp3splt-gtk
The registering of callback functions

Functions

int mp3splt_set_message_function (splt_state *state, void(*message_cb)(const char *, splt_message_type, void *), void *cb_data)
int mp3splt_set_progress_function (splt_state *state, void(*progress_cb)(splt_progress *p_bar, void *), void *cb_data)
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, void *), void *data)

Detailed Description

Function Documentation

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

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

Parameters
stateThe central struct libmp3splt keeps all its data in
message_cbThe callback function
Returns
The error code
int mp3splt_set_progress_function ( splt_state state,
void(*)(splt_progress *p_bar, void *)  progress_cb,
void *  cb_data 
)

Register the progress bar callback.

Parameters
stateThe central struct libmp3splt keeps all its data in
progress_cbThe callback function
Returns
The error code
int mp3splt_set_split_filename_function ( splt_state state,
void(*)(const char *, int, void *)  file_cb,
void *  data 
)

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

Parameters
stateThe central struct libmp3splt keeps all its data in
file_cbThe callback function
Returns
The error code