--- libaitrpc/inc/aitrpc.h 2010/06/23 16:23:31 1.1.1.1.2.7 +++ libaitrpc/inc/aitrpc.h 2010/06/23 17:29:07 1.1.1.1.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.1.1.1.2.7 2010/06/23 16:23:31 misho Exp $ +* $Id: aitrpc.h,v 1.1.1.1.2.9 2010/06/23 17:29:07 misho Exp $ * *************************************************************************/ #ifndef __AITRPC_H @@ -47,8 +47,9 @@ typedef enum { } rpc_type_t; typedef enum { - disable, enable, - get, set, unset + disable, enable, // for blob.state + ok, error, // for blob reply + get, set, unset // for blob request } cmd_type_t; /* RPC value */ @@ -440,6 +441,20 @@ inline void rpc_srv_blobUnmap(rpc_blob_t * __restrict * return: -1 error or 0 ok */ inline int rpc_srv_blobFree(rpc_srv_t * __restrict srv, rpc_blob_t * __restrict blob); + +/* + * rpc_srv_sendBLOB() Send mapped BLOB to client + * @cli = Client instance + * @blob = Mapped BLOB element + * return: -1 error, 0 ok + */ +int rpc_srv_sendBLOB(rpc_cli_t * __restrict cli, rpc_blob_t * __restrict blob); +/* + * rpc_srv_recvBLOB() Receive BLOB from client + * @cli = Client instance + * return: -1 error, 0 ok + */ +int rpc_srv_recvBLOB(rpc_cli_t * __restrict cli); /* RPC Client side functions */