Producer API

Producer API — Producer library control functions

Synopsis


#include <monitor/producer.h>


int         prod_lib_init                   (const char *config_file);
void        prod_lib_done                   (void);
int         prod_lib_reload                 (void);
void        prod_lib_set_debug              (int level);
const char* prod_lib_get_ident              (void);
void        prod_lib_set_ident              (const char *ident);

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.

level :the debug level.

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.