]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_feedback_control.h
Update transaction API
[frescor/frsh-include.git] / frsh_feedback_control.h
index 06af3beafaf8dc7d071c292c37460ccde733e994..d06fe7512f58ec6b280231f9279b87a372d563d0 100644 (file)
@@ -1,5 +1,5 @@
 // -----------------------------------------------------------------------
-//  Copyright (C) 2006 - 2008 FRESCOR consortium partners:
+//  Copyright (C) 2006 - 2009 FRESCOR consortium partners:
 //
 //    Universidad de Cantabria,              SPAIN
 //    University of York,                    UK
 //  by the GNU General Public License. This exception does not
 //  however invalidate any other reasons why the executable file might be
 //  covered by the GNU Public License.
-//  As a special exception, if you include this header file into source
-//  files to be compiled, this header file does not by itself cause
-//  the resulting executable to be covered by the GNU General Public
-//  License.  This exception does not however invalidate any other
-//  reasons why the executable file might be covered by the GNU General
-//  Public License.
 // -----------------------------------------------------------------------
 //frsh_feedback_control.h
 
@@ -134,16 +128,20 @@ FRSH_CPP_BEGIN_DECLS
  *
  * @note
  * No threads must be ever attached to the contract identified by
- * spare_id.
+ * spare_id. If this happens, behaviour is unspecified.
+ *
+ * @note
+ * This function must be called only once. If it is called more than
+ * once, then the behaviour is unspecified.
  **/
-int frsh_feedback_set_spare(frsh_vres_id_t spare_id);
+int frsh_feedback_set_spare(const frsh_contract_t *spare_contract);
 
 /**
  * frsh_feedback_get_spare()
  *
  * Get version of the frsh_feedback_set_spare() function.
  **/
-int frsh_feedback_get_spare(frsh_vres_id_t *p_spare_id);
+int frsh_feedback_get_spare(frsh_contract_t *spare_contract);
 
 /**
  * frsh_feedback_set_desired_budget()