summaryrefslogtreecommitdiff
path: root/p11-kit/rpc-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/rpc-client.h')
-rw-r--r--p11-kit/rpc-client.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/p11-kit/rpc-client.h b/p11-kit/rpc-client.h
index 46ee7bf..695ade8 100644
--- a/p11-kit/rpc-client.h
+++ b/p11-kit/rpc-client.h
@@ -20,18 +20,26 @@
Author: Stef Walter <stefw@gnome.org>
*/
+#ifndef __RPC_CLIENT_H__
+#define __RPC_CLIENT_H__
+
#include "pkcs11.h"
-#include "rpc-socket.h"
typedef struct _RpcClientVtable RpcClientVtable;
-
-typedef CK_RV (*_p11_rpc_client_initialize) (RpcClientVtable *vtable,
- void *init_reserved,
- RpcSocket **socket);
-
struct _RpcClientVtable {
void *data;
- _p11_rpc_client_initialize initialize;
+
+ CK_RV (* initialize) (RpcClientVtable *vtable,
+ void *init_reserved);
+
+ CK_RV (* transport) (RpcClientVtable *vtable,
+ unsigned char **data,
+ size_t *length);
+
+ void (* finalize) (RpcClientVtable *vtable,
+ void *fini_reserved);
};
-CK_FUNCTION_LIST_PTR _p11_rpc_client_register (const RpcClientVtable *vtable);
+CK_FUNCTION_LIST_PTR _p11_rpc_client_register (RpcClientVtable *vtable);
+
+#endif /* __RPC_CLIENT_H__ */