00001 /* Gearman server and 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_H__ 00015 #define __GEARMAN_SERVER_CONF_H__ 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00029 GEARMAN_API 00030 gearman_conf_st *gearman_conf_create(gearman_conf_st *conf); 00031 00035 GEARMAN_API 00036 void gearman_conf_free(gearman_conf_st *conf); 00037 00041 GEARMAN_API 00042 gearman_return_t gearman_conf_return(gearman_conf_st *conf); 00043 00047 GEARMAN_API 00048 const char *gearman_conf_error(gearman_conf_st *conf); 00049 00053 GEARMAN_API 00054 int gearman_conf_errno(gearman_conf_st *conf); 00055 00059 GEARMAN_API 00060 void gearman_conf_set_options(gearman_conf_st *conf, 00061 gearman_conf_options_t options, uint32_t data); 00062 00066 GEARMAN_API 00067 gearman_return_t gearman_conf_parse_args(gearman_conf_st *conf, int argc, 00068 char *argv[]); 00069 00073 GEARMAN_API 00074 void gearman_conf_usage(gearman_conf_st *conf); 00075 00078 #ifdef __cplusplus 00079 } 00080 #endif 00081 00082 #endif /* __GEARMAN_SERVER_CONF_H__ */