]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_bwres_requests.h
add the infraestructure for storing the negotiated contracts and performing the analy...
[frescor/fna.git] / src_frescan / frescan_bwres_requests.h
index b25e2031345b31ad00f833e3fd4ae513aec14b25..5bc448525a4d3e8a0424dffc8ac3daab92a4e3c6 100644 (file)
@@ -32,7 +32,8 @@
  * @ss: the local sporadic server ID
  * @request_node: the node that performed the request
  * @req: the request id of the SLAVE to identify the request in the reply
- * @return_value: the value returned in a Reply
+ * @return_value: the value returned in a Reply (accepted or not)
+ * @final_values: the values for the ss after the negotiation
  * @net: the network instance where this request belongs to
  * @robj: a reply object to wait until a negotiation is completed
  *
@@ -50,18 +51,18 @@ typedef enum {
 typedef enum {
         FRESCAN_REQ_ACCEPTED      =  0,  // the (re)negotiation is accepted
         FRESCAN_REQ_NOT_ACCEPTED  =  1,  // the (re)negotiation is not accepted
-        FRESCAN_REQ_ERROR         =  2,  // error during the (re)negotiation
 } frescan_request_retval_t;
 
 typedef struct {
-        frescan_request_type_t   type;
-        frescan_contract_t       *contract;
-        frescan_ss_t             ss;
-        frescan_node_t           request_node;
-        frescan_request_id_t     req;
-        frescan_request_retval_t return_value;
-        frescan_network_t        net;
-        frescan_robj_id_t        robj;
+        frescan_request_type_t    type;
+        frescan_contract_t        *contract;
+        frescan_ss_t              ss;
+        frescan_node_t            request_node;
+        frescan_request_id_t      req;
+        frescan_request_retval_t  return_value;
+        frescan_sa_final_values_t final_values;
+        frescan_network_t         net;
+        frescan_robj_id_t         robj;
 } frescan_request_data_t;
 
 /**