2 #ifndef _PXPRPC_SERVER_TBOX_H
3 #define _PXPRPC_SERVER_TBOX_H
5 #include <pxprpc/server.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
)();
18 extern int pxprpc_tbox_query_interface(pxprpc_tbox_api
**outapi
);