--- libaitrpc/inc/aitrpc.h 2010/07/08 07:16:36 1.1.1.1.2.18 +++ libaitrpc/inc/aitrpc.h 2010/07/08 09:18:51 1.1.1.1.2.20 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.1.1.1.2.18 2010/07/08 07:16:36 misho Exp $ +* $Id: aitrpc.h,v 1.1.1.1.2.20 2010/07/08 09:18:51 misho Exp $ * *************************************************************************/ #ifndef __AITRPC_H @@ -219,8 +219,8 @@ struct tagBLOBHdr { rpc_sess_t hdr_session; uint8_t hdr_cmd; uint32_t hdr_var; - uint32_t hdr_seq; uint32_t hdr_len; + uint32_t hdr_ret; } __packed; /* Network RPC client & server elements */ @@ -508,6 +508,22 @@ int rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_v * return: -1 error, 0 ok, 1 remote error */ 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 */