1
/* Module configuration library
2
* Copyright (C) 2009 Eric Day
5
* Use and distribution licensed under the BSD license. See
6
* the COPYING file in the parent directory for full text.
11
* @brief Gearman conf module declarations
14
#ifndef __GEARMAN_SERVER_CONF_MODULE_H__
15
#define __GEARMAN_SERVER_CONF_MODULE_H__
22
* @addtogroup gearman_conf_module Gearman conf module interface
27
* Initialize a gearman conf module structure.
30
gearman_conf_module_st *gearman_conf_module_create(gearman_conf_st *conf,
31
gearman_conf_module_st *module,
35
* Free a gearman conf module structure.
38
void gearman_conf_module_free(gearman_conf_module_st *module);
41
* Find a gearman conf module structure by name.
44
gearman_conf_module_st *gearman_conf_module_find(gearman_conf_st *conf,
48
* Add option for a module.
51
void gearman_conf_module_add_option(gearman_conf_module_st *module,
52
const char *name, int short_name,
53
const char *value_name, const char *help);
56
* Loop through all values that were given for a set of module options.
59
bool gearman_conf_module_value(gearman_conf_module_st *module,
60
const char **name, const char **value);
68
#endif /* __GEARMAN_SERVER_CONF_MODULE_H__ */