summaryrefslogtreecommitdiff
path: root/cesar/interface/fcall/interface_fcall.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/interface/fcall/interface_fcall.h')
-rw-r--r--cesar/interface/fcall/interface_fcall.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/cesar/interface/fcall/interface_fcall.h b/cesar/interface/fcall/interface_fcall.h
new file mode 100644
index 0000000000..5afdd997b3
--- /dev/null
+++ b/cesar/interface/fcall/interface_fcall.h
@@ -0,0 +1,44 @@
+#ifndef interface_fcall_interface_fcall_h
+#define interface_fcall_interface_fcall_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file interface/fcall/interface_fcall.h
+ * \brief Public interface fcall module functions.
+ * \ingroup interface/fcall
+ *
+ */
+#include "interface/fcall/inc/context.h"
+
+/**
+ * initialise the interface fcall module and the callback functions
+ * \param cb the function to call when the interface fcall needs to send a message
+ * \param user_data the data to provide on callback function
+ */
+interface_fcall_t*
+interface_fcall_init (interface_buffer_work_get_cb_t buffer_cb,
+ interface_fcall_send_message_cb_t send_cb,
+ void *user_data);
+
+/**
+ * uninitalise the interface fcall module
+ * \param ctx the interface fcall context
+ */
+void
+interface_fcall_uninit (interface_fcall_t *ctx);
+
+/**
+ * process a received MME and request the interface module to send the MME response
+ * \param data pointer to the interface fcall context
+ * \param mme the MME buffer
+ * \param length the MME length
+ */
+void
+interface_fcall_mme_recv (void *data, u8 *mme, uint length);
+
+#endif /* interface_fcall_interface_fcall_h */