summaryrefslogtreecommitdiff
path: root/cesar/cp2/cl_interf
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp2/cl_interf')
-rw-r--r--cesar/cp2/cl_interf/test/Makefile4
-rw-r--r--cesar/cp2/cl_interf/test/overide/cp_fsm_defs.h38
-rw-r--r--cesar/cp2/cl_interf/test/src/fsm_stub.c29
3 files changed, 70 insertions, 1 deletions
diff --git a/cesar/cp2/cl_interf/test/Makefile b/cesar/cp2/cl_interf/test/Makefile
index 1589ec8770..7e201427f0 100644
--- a/cesar/cp2/cl_interf/test/Makefile
+++ b/cesar/cp2/cl_interf/test/Makefile
@@ -2,9 +2,11 @@ BASE = ../../..
ECOS = y
+INCLUDES = cp2/cl_interf/test/overide
+
TARGET_PROGRAMS = test-cl-interf
-test-cl-interf_SOURCES = test-cl-interf.c cl_stub.c
+test-cl-interf_SOURCES = test-cl-interf.c cl_stub.c fsm_stub.c
test-cl-interf_MODULES = lib cp2/cl_interf cp2/sta/mgr mac/common \
cp2/secu
diff --git a/cesar/cp2/cl_interf/test/overide/cp_fsm_defs.h b/cesar/cp2/cl_interf/test/overide/cp_fsm_defs.h
new file mode 100644
index 0000000000..130e4ec426
--- /dev/null
+++ b/cesar/cp2/cl_interf/test/overide/cp_fsm_defs.h
@@ -0,0 +1,38 @@
+#ifndef overide_cp_fsm_defs_h
+#define overide_cp_fsm_defs_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file overide/cp_fsm_defs.h
+ * \brief « brief description »
+ * \ingroup « module »
+ *
+ * « long description »
+ */
+
+struct cp_fsm_transition_t
+{
+ uint titi;
+};
+typedef struct cp_fsm_transition_t cp_fsm_transition_t;
+
+enum cp_fsm_event_type_t
+{
+ CP_FSM_EVENT_TYPE_ALL_STA_LEAVED,
+ CP_FSM_EVENT_TYPE_NET_LIST_EMPTY,
+ CP_FSM_EVENT_TYPE_SNID_CONFLICT
+};
+typedef enum cp_fsm_event_type_t cp_fsm_event_type_t;
+
+struct cp_fsm_branch_t
+{
+ uint titi;
+};
+typedef struct cp_fsm_branch_t cp_fsm_branch_t;
+
+#endif /* overide_cp_fsm_defs_h */
diff --git a/cesar/cp2/cl_interf/test/src/fsm_stub.c b/cesar/cp2/cl_interf/test/src/fsm_stub.c
new file mode 100644
index 0000000000..a2f607bd1c
--- /dev/null
+++ b/cesar/cp2/cl_interf/test/src/fsm_stub.c
@@ -0,0 +1,29 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file src/fsm_stub.c
+ * \brief « brief description »
+ * \ingroup « module »
+ *
+ * « long description »
+ */
+#include "common/std.h"
+#include "cp2/fsm/fsm.h"
+
+static cp_fsm_event_t fsm_event;
+
+cp_fsm_event_t *
+cp_fsm_event_bare_new (cp_t *ctx, cp_fsm_event_type_t type)
+{
+ return &fsm_event;
+}
+
+void
+cp_fsm_post (cp_t *ctx, cp_fsm_event_t *event)
+{
+}