summaryrefslogtreecommitdiff
path: root/cesar/cp2/cco/bw/inc/bw.h
diff options
context:
space:
mode:
authorschodet2008-08-29 14:52:33 +0000
committerschodet2008-08-29 14:52:33 +0000
commit61addbb1e20e382581c3bee165b8c253adb69d84 (patch)
treef106646632de478a1bc08b12a043f83336435e98 /cesar/cp2/cco/bw/inc/bw.h
parent1b5b41d79cf71a1d5a784576aa1fa9d9bd704a71 (diff)
* cp2 -> cp:
- renamed. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2798 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/cco/bw/inc/bw.h')
-rw-r--r--cesar/cp2/cco/bw/inc/bw.h134
1 files changed, 0 insertions, 134 deletions
diff --git a/cesar/cp2/cco/bw/inc/bw.h b/cesar/cp2/cco/bw/inc/bw.h
deleted file mode 100644
index 4d453b181e..0000000000
--- a/cesar/cp2/cco/bw/inc/bw.h
+++ /dev/null
@@ -1,134 +0,0 @@
-#ifndef cp_cco_inc_bw_h
-#define cp_cco_inc_bw_h
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file inc/cp_cco_bw_private.h
- * \brief « brief description »
- * \ingroup « module »
- *
- * « long description »
- */
-#include "lib/set.h"
-#include "cp2/cco/bw/bw.h"
-#include "cp2/conn/link.h"
-
-#define FORWARD true
-#define BACKWARD false
-
-/**
- * Release the schedule after finalising it and sending it.
- * \param sched schedule to release
- * \return \todo fill this
- *
- */
-void
-cp_cco_bw_release_sched (cp_t *ctx);
-
-/**
- * Function that will allocate the end_tdma
- * \param ctx Control Plane Context
- *
- */
-void
-cp_cco_bw_alloc_end_tdma (cp_t *ctx);
-
-/**
- * Function that will allocate the proxy beacons
- * \param ctx Control Plane Context
- *
- */
-void
-cp_cco_bw_alloc_proxy (cp_t *ctx);
-
-/**
- * Allocate the discover beacon
- * \param ctx Control Plane context
- *
- */
-void
-cp_cco_bw_alloc_discover (cp_t *ctx);
-
-/**
- * Return the next allocation
- * \param ctx Control Plane Context
- * \param conn finalised allocation
- * \return The next allocation
- *
- */
-cp_cco_bw_alloc_t*
-cp_cco_bw_get_next_alloc_finalised(cp_cco_bw_alloc_t *alloc);
-
-/**
- * Return the first connection of a heap
- * \param heap Heap
- * \return The first connection of the heap
- *
- */
-cp_cco_bw_alloc_t*
-cp_cco_bw_get_first_alloc_finalised(cp_t *ctx);
-
-/**
- * Return the next allocation
- * \param ctx Control Plane Context
- * \param conn actual allocation
- * \return The next allocation
- *
- */
-cp_cco_bw_alloc_t*
-cp_cco_bw_get_next_alloc_actual(cp_cco_bw_alloc_t *alloc);
-
-/**
- * Return the first connection of a heap
- * \param heap Heap
- * \return The first connection of the heap
- *
- */
-cp_cco_bw_alloc_t*
-cp_cco_bw_get_first_alloc_actual(cp_t *ctx);
-
-/**
- * Returns the last ble and checks if the end of the free time has been
- * reached
- * \param first_ble First ble of the calculation spot
- * \param last_ble Last ble of this allocation spot
- * \param nb_pb Number of PBs to allocate
- * \param alloc allocation before the free time spot
- * \param next_alloc next allocation
- * \return false we have reached the end of the spot before finishing the
- * allocation
- *
- */
-bool
-cp_cco_bw_get_alloc_ble(cp_link_ble_interval_t **first_ble,
- cp_link_ble_interval_t **last_ble,
- u16 nb_pb,
- cp_cco_bw_alloc_t *alloc,
- cp_cco_bw_alloc_t *next_alloc);
-
-/**
- * Calculate the best allocation time between 2 BLE
- * \param first_ble First BLE
- * \param last_ble Last BLE
- * \param nb_pb Number of PB to allocate
- * \param alloc_st Allocation Start Time
- * \param alloc_et Allocation End Time
- * \param alloc Previous allocaton
- * \param next_alloc Next_allocation
- *
- */
-void
-cp_cco_bw_calculation_of_alloc_time(cp_link_ble_interval_t *first_ble,
- cp_link_ble_interval_t *last_ble,
- u16 nb_pb,
- u16 *alloc_st,
- u16 *alloc_et,
- cp_cco_bw_alloc_t *alloc,
- cp_cco_bw_alloc_t *next_alloc);
-
-#endif /* cp_cco_bw_private_h */