]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_core_types.h
Adding global_error_condition variable to facilitate error propagation in
[frescor/frsh-include.git] / frsh_core_types.h
index 0cc9c125a60a528138390305894f4f5e59dd04a3..1bf5e5485046eeb204b0ac364f86ae493c4066af 100644 (file)
@@ -102,11 +102,6 @@ typedef enum {
     FRSH_WT_INDETERMINATE
 } frsh_workload_t;
 
-#define FRSH_DEFAULT_WORKLOAD       FRSH_WT_INDETERMINATE
-#define FRSH_DEFAULT_D_EQUALS_T     false
-#define FRSH_DEFAULT_DEADLINE       {0,0} //struct timespec
-
-
 #define FRSH_NULL_DEADLINE     (struct timespec *)NULL
 // #define FRSH_NULL_SIGNAL       0 /* Defined at frsh_adaption.h */
 
@@ -122,7 +117,7 @@ typedef enum {FRSH_RS_IN_PROGRESS,
  *  Vres Id type, that identifies a vres created to manage a given
  *  contract
  **/
-typedef int      frsh_vres_id_t;             // => 0
+typedef unsigned int      frsh_vres_id_t;             // => 0
 
 /** Contract ressource type:  processor, network, memory **/
 typedef enum {
@@ -133,7 +128,7 @@ typedef enum {
 
 /** Ressource Id: processor_id or network_id **/
 /**********************************************/
-typedef int frsh_resource_id_t;
+typedef unsigned int frsh_resource_id_t;
 
 /** This defines 1 resource_id value for systems that have only one
     resource of a kind. **/
@@ -142,8 +137,9 @@ typedef int frsh_resource_id_t;
 /** Kind of contract: regular, background or dummy **/
 typedef enum {FRSH_CT_REGULAR, FRSH_CT_BACKGROUND, FRSH_CT_DUMMY} frsh_contract_type_t;
 
-#define CONTRACT_LABEL_MAXLENGTH 15
-typedef char frsh_contract_label_t[CONTRACT_LABEL_MAXLENGTH + 1];
+// The name of this constant has been updated to have the FRSH_ prefix
+#define FRSH_CONTRACT_LABEL_MAXLENGTH 15
+typedef char frsh_contract_label_t[FRSH_CONTRACT_LABEL_MAXLENGTH + 1];
 
 /**
  *  Contract parameters type; it is an opaque type (i.e. the internal