]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
frsh_vres_id_t converted to opaque type
authorsojkam <sojkam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Wed, 29 Oct 2008 09:05:41 +0000 (09:05 +0000)
committersojkam <sojkam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Wed, 29 Oct 2008 09:05:41 +0000 (09:05 +0000)
This is necessary for different FRSH implementations such as frsh_forb

git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1354 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_core_types.h
frsh_opaque_types.h

index 8c9ec55d63b7bea6756392e4b96430a21d033f10..a4a48f2b6669462214df4973ea3512cbcaad71b0 100644 (file)
@@ -157,7 +157,7 @@ typedef enum {FRSH_RS_IN_PROGRESS,
  *  Vres Id type, that identifies a vres created to manage a given
  *  contract
  **/
-typedef unsigned int      frsh_vres_id_t;             // => 0
+typedef FRSH_VRES_ID_T_OPAQUE frsh_vres_id_t;             // => 0
 
 /** Contract ressource type:  processor, network, memory **/
 typedef enum {
index 7e6c009e05f7c23491976f1d66da19ca74e9e515..70d0d455639bda70e02d9055310fe48ea1a6231e 100644 (file)
@@ -91,6 +91,8 @@ FRSH_CPP_BEGIN_DECLS
  * @{
  **/
 
+#define FRSH_VRES_ID_T_OPAQUE unsigned int
+
 /** frsh_contract_parameters_t **/
 #define FRSH_CONTRACT_T_OPAQUE struct { \
 \