|
@@ -40,13 +40,14 @@ enum rpc_flags {
|
|
|
|
|
|
|
|
|
/* Send the result to the caller */
|
|
|
-typedef int (*rpc_send_f)(void* ctx); /* Send the reply to the client */
|
|
|
-typedef void (*rpc_fault_f)(void* ctx, int code, char* reason); /* Signal a failure to the client */
|
|
|
-typedef int (*rpc_add_f)(void* ctx, char* fmt, ...); /* Add a new piece of data to the result */
|
|
|
-typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...); /* Retrieve request parameters */
|
|
|
-typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...); /* Add printf-like formated data to the result set */
|
|
|
-typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...); /* Create a new structure */
|
|
|
-typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...); /* Scan attributes of a structure */
|
|
|
+typedef int (*rpc_send_f)(void* ctx); /* Send the reply to the client */
|
|
|
+typedef void (*rpc_fault_f)(void* ctx, int code, char* fmt, ...); /* Signal a failure to the client */
|
|
|
+typedef int (*rpc_add_f)(void* ctx, char* fmt, ...); /* Add a new piece of data to the result */
|
|
|
+typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...); /* Retrieve request parameters */
|
|
|
+typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...); /* Add printf-like formated data to the result set */
|
|
|
+typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...); /* Create a new structure */
|
|
|
+typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...); /* Scan attributes of a structure */
|
|
|
+typedef int (*rpc_struct_printf_f)(void* ctx, char* name, char* fmt, ...); /* Struct version of rpc_printf */
|
|
|
|
|
|
/*
|
|
|
* RPC context, this is what RPC functions get as a parameter and use
|
|
@@ -61,6 +62,7 @@ typedef struct rpc {
|
|
|
rpc_printf_f printf;
|
|
|
rpc_struct_add_f struct_add;
|
|
|
rpc_struct_scan_f struct_scan;
|
|
|
+ rpc_struct_printf_f struct_printf;
|
|
|
} rpc_t;
|
|
|
|
|
|
|