acl/app/jaws/global/service_main.h

36 lines
710 B
C
Raw Normal View History

#ifndef __SERVICE_MAIN_INCLUDE_H__
2014-11-19 00:25:21 +08:00
#define __SERVICE_MAIN_INCLUDE_H__
#include "lib_acl.h"
#ifdef __cplusplus
extern "C" {
#endif
/* 全局变量 */
2014-11-19 00:25:21 +08:00
extern ACL_MEM_SLICE *var_mem_slice;
/**
*
* @param aio {ACL_AIO*}
2014-11-19 00:25:21 +08:00
*/
extern void service_init(ACL_AIO *aio, ACL_FIFO *modules);
/**
* 退
2014-11-19 00:25:21 +08:00
*/
extern void service_exit(void);
/**
*
* @param fd {ACL_SOCKET}
* @param aio {ACL_AIO*}
2014-11-19 00:25:21 +08:00
*/
extern int service_main(ACL_SOCKET fd, ACL_AIO *aio);
#ifdef __cplusplus
}
#endif
#endif