]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
add values for enum types
authorsangorrin <sangorrin@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 19 Oct 2007 09:28:24 +0000 (09:28 +0000)
committersangorrin <sangorrin@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 19 Oct 2007 09:28:24 +0000 (09:28 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@779 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_core_types.h

index 534b0776135ae5c6d1ca753fcb046ce51390916e..3ee6570f3f526a65dba4778d307374aca7989e47 100644 (file)
@@ -98,8 +98,8 @@
 
 /** Kind of workload expected in vres: bounded or indeterminate **/
 typedef enum {
-    FRSH_WT_BOUNDED,
-    FRSH_WT_INDETERMINATE
+    FRSH_WT_BOUNDED       = 0,
+    FRSH_WT_INDETERMINATE = 1
 } frsh_workload_t;
 
 #define FRSH_NULL_DEADLINE     (struct timespec *)NULL
@@ -121,9 +121,9 @@ typedef unsigned int      frsh_vres_id_t;             // => 0
 
 /** Contract ressource type:  processor, network, memory **/
 typedef enum {
-    FRSH_RT_PROCESSOR,
-    FRSH_RT_NETWORK,
-    FRSH_RT_MEMORY
+    FRSH_RT_PROCESSOR = 0,
+    FRSH_RT_NETWORK   = 1,
+    FRSH_RT_MEMORY    = 2
 } frsh_resource_type_t;
 
 /** Ressource Id: processor_id or network_id **/
@@ -137,7 +137,11 @@ typedef unsigned int frsh_resource_id_t;
 #define FRSH_NETWORK_ID_DEFAULT 0
 
 /** Kind of contract: regular, background or dummy **/
-typedef enum {FRSH_CT_REGULAR, FRSH_CT_BACKGROUND, FRSH_CT_DUMMY} frsh_contract_type_t;
+typedef enum {
+        FRSH_CT_REGULAR    = 0,
+        FRSH_CT_BACKGROUND = 1,
+        FRSH_CT_DUMMY      = 2
+} frsh_contract_type_t;
 
 // The name of this constant has been updated to have the FRSH_ prefix
 #define FRSH_CONTRACT_LABEL_MAXLENGTH 15