瀏覽代碼

- slightly change function prototypes

Jan Janak 20 年之前
父節點
當前提交
3b7600609d
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      rpc.h

+ 7 - 7
rpc.h

@@ -40,13 +40,13 @@ 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)(int handle, char* fmt, ...);  /* Create a new structure */
-typedef int (*rpc_struct_scan_f)(int handle, 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* 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 */
 
 /*
  * RPC context, this is what RPC functions get as a parameter and use