use XXX_SOURCE_DIR
[PxpRpc.git] / c / pxprpc_tbox / server_tbox.h
blobf502d5a05843680e01bc6b84b13e914076fc227c
2 #ifndef _PXPRPC_SERVER_TBOX_H
3 #define _PXPRPC_SERVER_TBOX_H
5 #include <pxprpc/server.h>
6 #include <tbox/tbox.h>
8 typedef void *pxprpc_server_tbox;
10 typedef struct pxprpc_tbox_api{
11 pxprpc_server_tbox (*new_server)(tb_socket_ref_t sock,struct pxprpc_namedfunc *namedFunc,int lenOfNamedFunc);
12 void (*serve_block)(pxprpc_server_tbox tbox);
13 int (*delete_server)(pxprpc_server_tbox serv);
14 const char *(*get_error)();
15 void (*clear_error)();
16 }pxprpc_tbox_api;
18 extern int pxprpc_tbox_query_interface(pxprpc_tbox_api **outapi);
20 #endif