--- libaitrpc/src/lists.c 2013/05/30 09:22:02 1.14 +++ libaitrpc/src/lists.c 2014/01/28 14:05:43 1.16 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: lists.c,v 1.14 2013/05/30 09:22:02 misho Exp $ +* $Id: lists.c,v 1.16 2014/01/28 14:05:43 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2014 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -173,10 +173,11 @@ rpc_srv_getBLOB(rpc_srv_t * __restrict srv, uint32_t v * * @srv = RPC Server instance * @len = BLOB length + * @tout = BLOB live timeout in seconds * return: NULL error or new registered BLOB */ rpc_blob_t * -rpc_srv_registerBLOB(rpc_srv_t * __restrict srv, size_t len) +rpc_srv_registerBLOB(rpc_srv_t * __restrict srv, size_t len, int tout) { rpc_blob_t *blob = NULL; @@ -185,9 +186,10 @@ rpc_srv_registerBLOB(rpc_srv_t * __restrict srv, size_ return blob; } - blob = rpc_srv_blobCreate(srv, len); + blob = rpc_srv_blobCreate(srv, len, tout); TAILQ_INSERT_TAIL(&srv->srv_blob.blobs, blob, blob_node); + return blob; }