version 1.1.1.1.2.17, 2010/07/07 15:18:22
|
version 1.1.1.1.2.20, 2010/07/08 09:18:51
|
Line 153 typedef struct {
|
Line 153 typedef struct {
|
} while (0) |
} while (0) |
|
|
|
|
#define RPC_CALLBACK_CHK_NUM_ARGS(f, n) do { \ | #define RPC_CALLBACK_CHK_RETARGS(f, n) do { \ |
if (f->func_args != n) { \ |
if (f->func_args != n) { \ |
rpc_SetErr(22, "Error:: different number of arguments!\n"); \ |
rpc_SetErr(22, "Error:: different number of arguments!\n"); \ |
return -1; \ |
return -1; \ |
Line 219 struct tagBLOBHdr {
|
Line 219 struct tagBLOBHdr {
|
rpc_sess_t hdr_session; |
rpc_sess_t hdr_session; |
uint8_t hdr_cmd; |
uint8_t hdr_cmd; |
uint32_t hdr_var; |
uint32_t hdr_var; |
uint32_t hdr_seq; |
|
uint32_t hdr_len; |
uint32_t hdr_len; |
|
uint32_t hdr_ret; |
} __packed; |
} __packed; |
|
|
/* Network RPC client & server elements */ |
/* Network RPC client & server elements */ |
Line 508 int rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_v
|
Line 508 int rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_v
|
* return: -1 error, 0 ok, 1 remote error |
* return: -1 error, 0 ok, 1 remote error |
*/ |
*/ |
int rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); |
int rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); |
|
/* |
|
* rpc_cli_delBLOB() Delete BLOB from server |
|
* @cli = Client instance |
|
* @var = BLOB variable |
|
* return: -1 error, 0 ok, 1 remote error |
|
*/ |
|
int rpc_cli_delBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var); |
|
/* |
|
* rpc_cli_getBLOB() Receive BLOB from server and Delete after that. |
|
* @cli = Client instance |
|
* @var = BLOB variable |
|
* @data = BLOB data, must be free after use! |
|
* return: -1 error, 0 ok, >0 remote error |
|
*/ |
|
inline int rpc_cli_getBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); |
|
|
|
|
|
|
/* RPC Client side functions */ |
/* RPC Client side functions */ |