summaryrefslogtreecommitdiff
path: root/cesar/interface/fcall/inc/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/interface/fcall/inc/context.h')
-rw-r--r--cesar/interface/fcall/inc/context.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/cesar/interface/fcall/inc/context.h b/cesar/interface/fcall/inc/context.h
index e997af40e8..aa11403a28 100644
--- a/cesar/interface/fcall/inc/context.h
+++ b/cesar/interface/fcall/inc/context.h
@@ -10,7 +10,7 @@
/**
* \file interface/fcall/inc/context.h
* \brief Context of the interface fcall module.
- * \ingroup interface/fcall
+ * \ingroup interface/fcall
*
*/
#include "host/fcall/fcall.h"
@@ -20,6 +20,13 @@ typedef void (*interface_fcall_send_message_cb_t) (void *user_data, uint *messag
typedef void (*interface_fcall_send_done_message_cb_t) (void *user_data, u8 *message);
+/** Get a buffer to send answer.
+ * \param user_data the user data previously registered.
+ * \return buffer the buffer provided.
+ */
+typedef u8 *
+(*interface_fcall_get_buffer_cb_t) (void *user_data);
+
typedef struct interface_fcall_t
{
fcall_ctx_t *fcall_ctx; /** pointer to fcall context */
@@ -30,6 +37,9 @@ typedef struct interface_fcall_t
bitstream_t bitstream_ctx; /** bitstream context */
mac_t oda; /** ODA of the received MME */
mac_t osa; /** OSA of the received MME */
+
+ /** interface_fcall_get_buffer call back*/
+ interface_fcall_get_buffer_cb_t buffer_get_cb;
} interface_fcall_t;
#endif /* interface_fcall_inc_context_h */