Browse code

- struct_printf added

Jan Janak authored on 20/12/2005 11:39:05
Showing 1 changed files
... ...
@@ -40,13 +40,14 @@ enum rpc_flags {
40 40
 	
41 41
 
42 42
 /* Send the result to the caller */
43
-typedef int (*rpc_send_f)(void* ctx);                           /* Send the reply to the client */
44
-typedef void (*rpc_fault_f)(void* ctx, int code, char* reason); /* Signal a failure to the client */
45
-typedef int (*rpc_add_f)(void* ctx, char* fmt, ...);            /* Add a new piece of data to the result */
46
-typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...);           /* Retrieve request parameters */
47
-typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...);         /* Add printf-like formated data to the result set */
48
-typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...);     /* Create a new structure */
49
-typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...);    /* Scan attributes of a structure */
43
+typedef int (*rpc_send_f)(void* ctx);                                      /* Send the reply to the client */
44
+typedef void (*rpc_fault_f)(void* ctx, int code, char* fmt, ...);          /* Signal a failure to the client */
45
+typedef int (*rpc_add_f)(void* ctx, char* fmt, ...);                       /* Add a new piece of data to the result */
46
+typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...);                      /* Retrieve request parameters */
47
+typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...);                    /* Add printf-like formated data to the result set */
48
+typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...);                /* Create a new structure */
49
+typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...);               /* Scan attributes of a structure */
50
+typedef int (*rpc_struct_printf_f)(void* ctx, char* name, char* fmt, ...); /* Struct version of rpc_printf */
50 51
 
51 52
 /*
52 53
  * RPC context, this is what RPC functions get as a parameter and use
... ...
@@ -61,6 +62,7 @@ typedef struct rpc {
61 62
 	rpc_printf_f printf;
62 63
 	rpc_struct_add_f struct_add;
63 64
 	rpc_struct_scan_f struct_scan;
65
+	rpc_struct_printf_f struct_printf;
64 66
 } rpc_t;
65 67
 
66 68