]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_bwres_analysis.h
added the functions to renegotiate and cancel a contract. TODO: there is a bug when...
[frescor/fna.git] / src_frescan / frescan_bwres_analysis.h
index ad9fca6aa4a71a559fe4ef80250e7731d7bb764a..9058f56e6d16772b9f96f1db86149e914a4bad8f 100644 (file)
@@ -107,14 +107,16 @@ extern int frescan_sa_add_contract(frescan_sa_scenario_t    *scenario,
  *
  * @scenario: the scenario (in out)
  * @ss: the ss identificator (in)
- * @contract: the values to update the contract (in)
  * @node: the node this contract belongs to (in)
+ * @contract: the values to update the contract (in)
+ * @old_contract: the values of the previous contract. Can be NULL (out)
  */
 
-extern int frescan_sa_update_contract(frescan_sa_scenario_t *scenario,
-                                      frescan_ss_t          ss,
+extern int frescan_sa_update_contract(frescan_sa_scenario_t   *scenario,
+                                      frescan_ss_t             ss,
+                                      frescan_node_t           node,
                                       const frescan_contract_t *contract,
-                                      frescan_node_t           node);
+                                      frescan_contract_t       *old_contract);
 
 /**
  * frescan_sa_remove_contract() - remove a contract from the scenario