00001 /* Module configuration library 00002 * Copyright (C) 2009 Eric Day 00003 * All rights reserved. 00004 * 00005 * Use and distribution licensed under the BSD license. See 00006 * the COPYING file in the parent directory for full text. 00007 */ 00008 00014 #ifndef __GEARMAN_SERVER_CONF_MODULE_H__ 00015 #define __GEARMAN_SERVER_CONF_MODULE_H__ 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00029 GEARMAN_API 00030 gearman_conf_module_st *gearman_conf_module_create(gearman_conf_st *conf, 00031 gearman_conf_module_st *module, 00032 const char *name); 00033 00037 GEARMAN_API 00038 void gearman_conf_module_free(gearman_conf_module_st *module); 00039 00043 GEARMAN_API 00044 gearman_conf_module_st *gearman_conf_module_find(gearman_conf_st *conf, 00045 const char *name); 00046 00050 GEARMAN_API 00051 void gearman_conf_module_add_option(gearman_conf_module_st *module, 00052 const char *name, int short_name, 00053 const char *value_name, const char *help); 00054 00058 GEARMAN_API 00059 bool gearman_conf_module_value(gearman_conf_module_st *module, 00060 const char **name, const char **value); 00061 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 #endif /* __GEARMAN_SERVER_CONF_MODULE_H__ */