--- libaitrpc/inc/aitrpc.h 2010/07/08 07:32:53 1.1.1.1.2.19 +++ 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.19 2010/07/08 07:32:53 misho Exp $ +* $Id: aitrpc.h,v 1.1.1.1.2.20 2010/07/08 09:18:51 misho Exp $ * *************************************************************************/ #ifndef __AITRPC_H @@ -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 */