11
* @brief modconf core declarations
11
* @brief Gearman conf declarations
21
#include <sys/types.h>
23
#include <libgearman/modconf_constants.h>
24
#include <libgearman/modconf_structs.h>
25
#include <libgearman/modconf_module.h>
14
#ifndef __GEARMAN_CONF_H__
15
#define __GEARMAN_CONF_H__
32
* @addtogroup modconf modconf Core Interface
22
* @addtogroup gearman conf Gearman Conf Interface
37
* Return modconf version.
39
const char *gmodconf_version(void);
42
* Return modconf bug report URL.
44
const char *gmodconf_bugreport(void);
47
* Initialize a modconf structure.
49
modconf_st *gmodconf_create(modconf_st *modconf);
52
* Free a modconf structure.
54
void gmodconf_free(modconf_st *modconf);
27
* Initialize a gearman conf structure.
29
gearman_conf_st *gearman_conf_create(gearman_conf_st *conf);
32
* Free a gearman conf structure.
34
void gearman_conf_free(gearman_conf_st *conf);
57
37
* Return an return code for the last library error encountered.
59
modconf_return_t gmodconf_return(modconf_st *modconf);
39
gearman_return_t gearman_conf_return(gearman_conf_st *conf);
62
42
* Return an error string for last library error encountered.
64
const char *gmodconf_error(modconf_st *modconf);
67
* Value of errno in the case of a MODCONF_ERRNO return value.
69
int gmodconf_errno(modconf_st *modconf);
72
* Set options for a modconf structure.
74
void gmodconf_set_options(modconf_st *modconf, modconf_options_t options,
44
const char *gearman_conf_error(gearman_conf_st *conf);
47
* Value of errno in the case of a GEARMAN_ERRNO return value.
49
int gearman_conf_errno(gearman_conf_st *conf);
52
* Set options for a gearman conf structure.
54
void gearman_conf_set_options(gearman_conf_st *conf,
55
gearman_conf_options_t options, uint32_t data);
78
58
* Parse command line arguments.
80
modconf_return_t gmodconf_parse_args(modconf_st *modconf, int argc,
84
* Parse configuration file.
86
modconf_return_t gmodconf_parse_file(modconf_st *modconf, const char *file);
60
gearman_return_t gearman_conf_parse_args(gearman_conf_st *conf, int argc,
89
64
* Print usage information to stdout.
91
void gmodconf_usage(modconf_st *modconf);
66
void gearman_conf_usage(gearman_conf_st *conf);