From: sangorrin Date: Fri, 19 Oct 2007 09:28:05 +0000 (+0000) Subject: frsh marshal X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/frsh-include.git/commitdiff_plain/6de550641d6daff2e92950129d513ff73c3ce30c frsh marshal git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@778 35b4ef3e-fd22-0410-ab77-dab3279adceb --- diff --git a/frsh_distributed.h b/frsh_distributed.h index 9796c8c..e5dfb66 100644 --- a/frsh_distributed.h +++ b/frsh_distributed.h @@ -316,9 +316,22 @@ int frsh_contract_set_protocol_info(frsh_protocol_info_t protocol_info, * * We get protocol info from the contract **/ -int frsh_contract_get_protocol_info(frsh_contract_t contract, +int frsh_contract_get_protocol_info(frsh_contract_t *contract, frsh_protocol_info_t *protocol_info); +/** + * frsh_contract_marshal + * + * Convert a contract to a sequence of bytes of minimum size so it can + * be sent through the network with the minimum amount of bytes. + * + **/ + +int frsh_contract_marshal(const frsh_contract_t *contract, + unsigned char *buffer, + const size_t buffer_size, + size_t *size); + /*@}*/ //////////////////////////////////////////////////////////////////////