Browse code

core: rpc - adding rpc_cb_ctx_t

- rpc_cb_ctx_t is a convenient way of packing an rpc
callback (rpc_function_t) parameters and it's not
used/needed by the rpc api/interface.

Ovidiu Sas authored on 29/06/2010 13:53:05
Showing 1 changed files
... ...
@@ -95,6 +95,18 @@ typedef struct rpc_delayed_ctx{
95 95
 
96 96
 typedef void (*rpc_function_t)(rpc_t* rpc, void* ctx);
97 97
 
98
+/*
99
+ * RPC callback context.
100
+ *
101
+ * Defines a convenient way of packing an rpc callback
102
+ * (rpc_function_t) parameters and it's not used/needed
103
+ * by the rpc api/interface.
104
+ */
105
+typedef struct rpc_cb_ctx {
106
+	rpc_t *rpc;
107
+	void *c;
108
+} rpc_cb_ctx_t;
109
+
98 110
 
99 111
 /*
100 112
  * Remote Procedure Call Export