Debian Codegraph @

pkcs11/rpc-layer/gkm-rpc-layer.h

raw
1 #ifndef GKM_RPC_LAYER_H_
2 #define GKM_RPC_LAYER_H_
3
4 #include "pkcs11/pkcs11.h"
5
6 /* ------------------------------------------------------------------
7 * DISPATCHER
8 */
9
10 /* Call to initialize the module */
11 int gkm_rpc_layer_initialize (CK_FUNCTION_LIST_PTR funcs);
12
13 /* Should be called to cleanup dispatcher */
14 void gkm_rpc_layer_uninitialize (void);
15
16 /* Call to start listening, returns socket or -1 */
17 int gkm_rpc_layer_startup (const char *prefix);
18
19 /* Accept a new connection. Should be called when above fd has read */
20 void gkm_rpc_layer_accept (void);
21
22 /* Call to shutdown socket */
23 void gkm_rpc_layer_shutdown (void);
24
25 #endif /* GKM_RPC_LAYER_H_ */