summaryrefslogtreecommitdiff
path: root/cesar/interface/inc/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/interface/inc/interface.h')
-rw-r--r--cesar/interface/inc/interface.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/cesar/interface/inc/interface.h b/cesar/interface/inc/interface.h
new file mode 100644
index 0000000000..aec0877ff4
--- /dev/null
+++ b/cesar/interface/inc/interface.h
@@ -0,0 +1,43 @@
+#ifndef interface_inc_interface_h
+#define interface_inc_interface_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file interface/inc/interface.h
+ * \brief Interface private functions.
+ * \ingroup interface
+ *
+ */
+
+#include "interface/interface.h"
+
+/**
+ * The buffer shall be provided to the CP.
+ * \param ctx the interface context.
+ * \param buffer the buffer to add.
+ */
+void
+interface_buffer_add (interface_t *ctx, u8 *buffer);
+
+/**
+ * Add a buffer to its own list.
+ * \param ctx the interface context.
+ * \param buffer the buffer to add
+ */
+void
+interface_buffer_work_add (interface_t *ctx, u8 *buffer);
+
+/**
+ * Get a buffer from the list.
+ * \param ctx the interface context.
+ * \return the buffer to use, NULL if no buffer is available.
+ */
+u8*
+interface_buffer_work_get (interface_t *ctx);
+
+#endif /* interface_inc_interface_h */