summaryrefslogtreecommitdiff
path: root/cesar/cp2/cco
diff options
context:
space:
mode:
authorboure2008-05-23 09:26:40 +0000
committerboure2008-05-23 09:26:40 +0000
commitaf5d7bf515d00004db789ae1e72b7495d9e094f2 (patch)
tree9400ad4e9ad61ed1b350bed22ddc4ab8bc1405e9 /cesar/cp2/cco
parent072e2a24f64661c8c26e965dd855766d08851c9c (diff)
add duration persistence
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2079 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/cco')
-rw-r--r--cesar/cp2/cco/bw/bw.h32
1 files changed, 14 insertions, 18 deletions
diff --git a/cesar/cp2/cco/bw/bw.h b/cesar/cp2/cco/bw/bw.h
index 2e7ce10bf5..b5448a172d 100644
--- a/cesar/cp2/cco/bw/bw.h
+++ b/cesar/cp2/cco/bw/bw.h
@@ -57,8 +57,11 @@ struct cp_cco_bw_alloc_conn_t
* Persistence of the allocation. Value not defined yet (maybe regarding
* to the priority)
*/
- cp_cco_bw_persistence_t presistence;
-
+ cp_cco_bw_persistence_t presistence;
+ /**
+ * Duration of the persitence in number of beacon period
+ */
+ u8 duration_persistence;
/**
* Node of the list of alloc
*/
@@ -111,7 +114,6 @@ typedef struct cp_cco_bw_t cp_cco_bw_t;
/**
* Allocate a complete Schedule .
- * \param ctx the module context.
* \param ctx Control Plane Context
*
*/
@@ -120,9 +122,8 @@ cp_cco_bw_alloc_sched (cp_t *ctx);
/**
* Allocates a unique connection.
- * \param ctx the module context.
- * \param cid Connection identifier
* \param ctx Control Plane Context
+ * \param cid Connection identifier
* \return \todo fill this
*
*/
@@ -131,7 +132,7 @@ cp_cco_bw_alloc_conn (cp_t *ctx, u8 cid);
/**
* This function will initialise a new schedule.
- * \param ctx the module context.
+ * \param ctx control plane context
* \return \todo fill this
*
*/
@@ -142,6 +143,7 @@ cp_cco_bw_new_sched (cp_t *ctx);
/**
* Finalise schedule
*
+ * \param ctx control plane context
* This function as to be called before asking for the schedule
* Fills the free fields with bonus allocation if there is not enough
* time for CSMA. Otherwise it fills with CSMA
@@ -152,44 +154,38 @@ cp_cco_bw_finalise_sched(cp_t *ctx);
/**
* Return the first element of schedule persistent or not
* persistent.
- * \param ctx the module context.
* \param ctx Control Plane Context
+ * \param persistence persistent or not persistent
* \return the first element of the schedule
*
*
- * true : persisent
- * false : non persistent
- *
*/
cp_cco_bw_alloc_conn_t*
cp_cco_bw_get_first_alloc (cp_t *ctx, cp_cco_bw_persistence_t persistence);
-
/**
* Return the next allocation persistent or not
+ * \param ctx control plane context
* \param prev_alloc previous allocation
* \return the next allocation
*
- * true : persisent
- * false : non persistent
*/
cp_cco_bw_alloc_conn_t*
-cp_cco_bw_get_next_alloc (cp_t *ctx, cp_cco_bw_alloc_conn_t *prev_alloc, cp_cco_bw_persistence_t persistence);
+cp_cco_bw_get_next_alloc (cp_t *ctx, cp_cco_bw_alloc_conn_t *prev_alloc);
/**
* Return the number of allocation persistent or not
+ * \param ctx control plane context
+ * \param persistence persistent or not persistent
* \return return the number of allocation
*
- * true : persisent
- * false : non persistent
*/
u16
cp_cco_bw_get_nb_alloc(cp_t *ctx, cp_cco_bw_persistence_t persistence);
/**
* Init of the BW manager.
- * \param ctx the module context.
* \param ctx Control Plane Context
*
*/
@@ -198,7 +194,7 @@ cp_cco_bw_init (cp_t* ctx);
/**
* uninit the bandwidth manager allocations.
- * \param ctx the module context.
+ * \param ctx control plane context
*
*/
void