--- libaitrpc/inc/aitrpc.h 2010/06/28 15:18:43 1.1.1.1.2.12 +++ libaitrpc/inc/aitrpc.h 2010/06/28 15:54:05 1.1.1.1.2.13 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.1.1.1.2.12 2010/06/28 15:18:43 misho Exp $ +* $Id: aitrpc.h,v 1.1.1.1.2.13 2010/06/28 15:54:05 misho Exp $ * *************************************************************************/ #ifndef __AITRPC_H @@ -489,6 +489,23 @@ int rpc_srv_sendBLOB(rpc_cli_t * __restrict cli, rpc_b * return: -1 error, 0 ok, >0 unreceived data from client, may be error? */ int rpc_srv_recvBLOB(rpc_cli_t * __restrict cli, rpc_blob_t * __restrict blob); + +/* + * rpc_cli_sendBLOB() Send BLOB to server + * @cli = Client instance + * @var = BLOB variable + * @data = BLOB data + * return: -1 error, 0 ok + */ +int rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void * __restrict data); +/* + * rpc_cli_recvBLOB() Receive BLOB from server + * @cli = Client instance + * @var = BLOB variable + * @data = BLOB data, must be free after use! + * return: -1 error, 0 ok, >0 unreceived data from server, may be error? + */ +int rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); /* RPC Client side functions */