]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/core/fwp_vres.h
Added support for contract negotiation
[frescor/fwp.git] / fwp / lib / core / fwp_vres.h
index 4c795cb0f8abdc8973150efa8444ead1c876a91d..01ebe91d31df2377caeb6b374e58c6b177260ef5 100644 (file)
@@ -23,7 +23,8 @@ typedef struct fwp_vres  fwp_vres_t;
 
 typedef unsigned int fwp_vres_id_t;
 typedef unsigned int fwp_vparam_id_t;
-typedef unsigned int fwp_budget_t;
+typedef unsigned long int fwp_budget_t;
+typedef struct timespec  fwp_period_t;
 
 /**
  * FWP vres parameters 
@@ -35,7 +36,7 @@ struct fwp_vres_params {
        fwp_vparam_id_t id; 
        fwp_budget_t    budget;         /**< bytes per period */
        /** all time units are in microseconds */       
-       int             period_usec
+       fwp_period_t    period
        fwp_ac_t        ac_id;          /**< AC id ~ priority of vres */
 } fwp_vres_params_t;