Producer APIProducer API — Producer library control functions | |
Description
Producer library
Details
prod_lib_init ()
int prod_lib_init (const char *config_file);
Initialize the producer library.
| config_file : | the configuration file to use.
|
| Returns : | 0 if successful or an error code.
|
prod_lib_done ()
void prod_lib_done (void);
Shut down the producer library and free allocated resources.
prod_lib_reload ()
int prod_lib_reload (void);
Reloads the producer library configuration.
| Returns : | 0 if successful or an error code.
|
prod_lib_set_debug ()
void prod_lib_set_debug (int level);
Set the debug level of the library.
prod_lib_get_ident ()
const char* prod_lib_get_ident (void);
Retrieves the producer's identity string.
| Returns : | the identity string.
|
prod_lib_set_ident ()
void prod_lib_set_ident (const char *ident);
Sets the producer's identity string.
| ident : | the identity string.
|