]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_distributed.h
Feedback control module API updated to its new version as proposed by SSSA.
[frescor/frsh-include.git] / frsh_distributed.h
index e5dfb66fe3ecd18221c6c7da0a20ffd3a575fe2b..58d8d8b9d83a10c9629115d8f297778c7ad967aa 100644 (file)
@@ -332,6 +332,17 @@ int frsh_contract_marshal(const frsh_contract_t *contract,
                           const size_t          buffer_size,
                           size_t                *size);
 
+/**
+ * frsh_contract_unmarshal
+ *
+ * Convert a sequence of bytes generated by frsh_contract_marshal to a contract
+ *
+ **/
+
+int frsh_contract_unmarshal(frsh_contract_t      *contract,
+                            const unsigned char  *marshal_bytes,
+                            const size_t         size);
+
 /*@}*/
 
 //////////////////////////////////////////////////////////////////////
@@ -595,10 +606,10 @@ int frsh_receive_endpoint_destroy
  **/
 int frsh_receive_sync
   (const frsh_receive_endpoint_t  endpoint,
-   void                          *buffer,
+   void                           *buffer,
    size_t                         buffer_size,
-   size_t                        *message_size,
-   frsh_network_address_t *from);
+   size_t                         *message_size,
+   frsh_network_address_t         *from);
 
 /**
  * frsh_receive_async()
@@ -616,10 +627,10 @@ int frsh_receive_sync
  **/
 int frsh_receive_async
   (const frsh_receive_endpoint_t  endpoint,
-   void                          *buffer,
+   void                           *buffer,
    size_t                         buffer_size,
-   size_t                        *message_size,
-   frsh_network_address_t *from);
+   size_t                         *message_size,
+   frsh_network_address_t         *from);
 
 
 /**