summaryrefslogtreecommitdiff
path: root/cesar/interface/interface.h
diff options
context:
space:
mode:
authorIPMbox Team2012-02-03 14:32:28 +0100
committerNicolas Schodet2012-02-20 10:08:46 +0100
commit3ed571f9d933e5c5dadef650c07e20e8aad06213 (patch)
tree761bfe80d4660605e00f52afb8532d9a2ef847b6 /cesar/interface/interface.h
parent89328e8cc096f8c9f340a3eb8910d06748a3e572 (diff)
cesar, cleopatre, common: new ipmbox design, closes #848
Diffstat (limited to 'cesar/interface/interface.h')
-rw-r--r--cesar/interface/interface.h49
1 files changed, 9 insertions, 40 deletions
diff --git a/cesar/interface/interface.h b/cesar/interface/interface.h
index 6179bfaa43..4163dfb03f 100644
--- a/cesar/interface/interface.h
+++ b/cesar/interface/interface.h
@@ -15,9 +15,8 @@
* The interface module allows the communication between Actors and
* the Data plane.
*/
-
-#include "hle/hle.h"
#include "cl/cl.h"
+#include "cl/mbx/mbx.h"
#include "mac/sar/sar.h"
#include "bsu/bsu.h"
@@ -30,35 +29,27 @@
* \param tei the station's source TEI.
* \param buffer the buffer containing the MME.
* \param length the MME length
- * \param mme_data data use by the CL.
* \param encrypted inform if the packet comes from the PWL if it has been
* crypted.
*/
typedef void
(*interface_mme_recv_cb_t) (void *user_data, uint tei, u8 *buffer,
- uint length, bool mme_recv, bool encryption);
-
-/**
- * Function to call when the interface receives a empty buffer.
- * \param user_data the data registered by the actor in the init function.
- * \param buffer the buffer to add.
- */
-typedef void
-(*interface_mme_buffer_add_cb_t) (void *user_data, u8 *buffer);
+ uint length, bool encryption);
BEGIN_DECLS
/**
* Initialise the interface module.
- * \param hle the hle context.
* \param cl the cl context.
+ * \param mbx the mbx context.
* \param sar the sar context.
* \param mac_config the mac config context.
+ * \param bufmgr the buffer manager context.
* \return the interface module context.
*/
interface_t*
-interface_init (hle_t *hle, cl_t *cl, sar_t *sar, mac_config_t
- *mac_config);
+interface_init (cl_t *cl, cl_mbx_t *mbx, sar_t *sar, mac_config_t *mac_config,
+ bufmgr_t *bufmgr);
/**
* Interface uninit.
@@ -71,36 +62,23 @@ interface_uninit (interface_t *ctx);
* Initialise the callbacks functions.
* \param ctx the interface context.
* \param mme_recv_cb the function to call on reception of a MME.
- * \param buffer_add_cb the function to call on buffer reception.
- * \param beacon_add_cb the function to call on beacon reception
* \param user_data the data to provide on each callback function.
*/
void
-interface_callback_init (interface_t *ctx, interface_mme_recv_cb_t mme_recv_cb,
- interface_mme_buffer_add_cb_t buffer_add_cb, void *user_data);
+interface_callback_init (
+ interface_t *ctx, interface_mme_recv_cb_t mme_recv_cb, void *user_data);
/** Receives an MME from the PWL or the HLE.
* \param ctx the interface context
* \param tei the station's source TEI.
* \param buffer the buffer containing the MME.
* \param length the MME length
- * \param mme_data data use by the CL.
* \param encrypted inform if the packet comes from the PWL if it has been
* crypted.
*/
void
interface_mme_recv (interface_t *ctx, uint tei, u8 *buffer, uint length,
- bool mme_data, bool encrypted);
-
-
-/**
- * Inform the Data plane when the MME as been processed by the CP.
- * \param ctx the interface context
- * \param buffer the buffer to give back.
- * \param mme_recv the cl data (as a void pointer).
- */
-void
-interface_mme_recv_done (interface_t *ctx, u8 *buffer, bool mme_recv);
+ bool encrypted);
/** Provides a MME to send to the CL. This MME can be send as a MME or a data.
* \param ctx the interface context.
@@ -119,15 +97,6 @@ interface_mme_send (interface_t *ctx, u8* buffer, uint length, uint tei);
void
interface_beacon (interface_t *ctx, bsu_beacon_t *beacon);
-/**
- * Sends a message to the IPMbox
- * \param ctx the interface context
- * \param data the message to post in the ipmbox.
- * \param length the length of the data in bytes.
- */
-void
-interface_hle_send (interface_t *ctx, uint *data, uint length);
-
END_DECLS
#endif /* interface_interface_h */