summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/interface/def.h20
-rw-r--r--cesar/interface/sniffer/sniffer.h4
2 files changed, 24 insertions, 0 deletions
diff --git a/cesar/interface/def.h b/cesar/interface/def.h
new file mode 100644
index 0000000000..075964594e
--- /dev/null
+++ b/cesar/interface/def.h
@@ -0,0 +1,20 @@
+#ifndef interface_def_h
+#define interface_def_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file interface/def.h
+ * \brief « brief description »
+ * \ingroup « module »
+ *
+ * « long description »
+ */
+
+#define INTERFACE_MME_HEADER_SIZE 4
+
+#endif /* interface_def_h */
diff --git a/cesar/interface/sniffer/sniffer.h b/cesar/interface/sniffer/sniffer.h
index 6f21e2dfd8..6ee2929b0e 100644
--- a/cesar/interface/sniffer/sniffer.h
+++ b/cesar/interface/sniffer/sniffer.h
@@ -23,6 +23,7 @@
#include "mac/pbproc/pbproc.h"
#include "mac/common/pb.h"
+#define INTERFACE_BEACON_SIZE 136
/** Send a message to the interface. This message shall be send to the linux driver.
* \param user_data the data provided in the function registration
@@ -36,6 +37,7 @@ typedef void (*interface_sniffer_send_message_cb_t) (void *user_data,
/** Forward declaration. */
typedef struct interface_sniffer_t interface_sniffer_t;
+BEGIN_DECLS
/** Initialise the sniffer and all the callback of the sniffer.
* \param cb the function to call when the sniffer needs to send a message.
@@ -207,4 +209,6 @@ interface_sniffer_beacon_status_rx (interface_sniffer_t *ctx)
uint
interface_sniffer_status (interface_sniffer_t *ctx);
+END_DECLS
+
#endif /* interface_sniffer_sniffer_h */