acl/lib_acl/samples/dict/unix_aio/service_main.h

49 lines
1.1 KiB
C
Raw Normal View History


2014-11-19 00:25:21 +08:00
#ifndef __SERVICE_MAIN_INCLUDE_H__
#define __SERVICE_MAIN_INCLUDE_H__
#include "lib_acl.h"
#ifdef __cplusplus
extern "C" {
#endif
/* 配置文件项 */
2014-11-19 00:25:21 +08:00
/* in service_main.c */
extern int var_cfg_debug_mem;
extern char *var_cfg_dbpath;
extern char *var_cfg_dbnames;
extern int var_cfg_rw_timeout;
extern int var_cfg_use_bdb;
extern ACL_CONFIG_BOOL_TABLE service_conf_bool_tab[];
extern ACL_CONFIG_INT_TABLE service_conf_int_tab[];
extern ACL_CONFIG_STR_TABLE service_conf_str_tab[];
/**
*
* @param init_ctx {void*} ,
* app_main()
2014-11-19 00:25:21 +08:00
*/
extern void service_init(void *init_ctx);
/**
* 退
* @param exist_ctx {void*}
2014-11-19 00:25:21 +08:00
*/
extern void service_exit(void *exit_ctx);
/**
*
* @param stream {ACL_VSTREAM*}
* @param run_ctx {void*}
2014-11-19 00:25:21 +08:00
*/
extern int service_main(ACL_ASTREAM *astream, void *run_ctx);
#ifdef __cplusplus
}
#endif
#endif