summaryrefslogtreecommitdiff
path: root/cesar/cp/eoc/fsm/stub/src/fsm_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/eoc/fsm/stub/src/fsm_stub.c')
-rw-r--r--cesar/cp/eoc/fsm/stub/src/fsm_stub.c87
1 files changed, 87 insertions, 0 deletions
diff --git a/cesar/cp/eoc/fsm/stub/src/fsm_stub.c b/cesar/cp/eoc/fsm/stub/src/fsm_stub.c
new file mode 100644
index 0000000000..dd915b4f63
--- /dev/null
+++ b/cesar/cp/eoc/fsm/stub/src/fsm_stub.c
@@ -0,0 +1,87 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cp/eoc/fsm/stub/src/fsm_stub.c
+ * \brief Generic FSM stub.
+ * \ingroup cp_eoc_fsm_stub
+ */
+#include "common/std.h"
+#include "cp/fsm/fsm.h"
+
+void
+cp_fsm_init (cp_t *ctx) __attribute__ ((weak));
+void
+cp_fsm_init (cp_t *ctx) { }
+
+void
+cp_fsm_uninit (cp_t *ctx) __attribute__ ((weak));
+void
+cp_fsm_uninit (cp_t *ctx) {}
+
+void
+cp_fsm_process (cp_t *ctx) __attribute__ ((weak));
+void
+cp_fsm_process (cp_t *ctx) {}
+
+void
+cp_fsm_process_urgent (cp_t *ctx) __attribute__ ((weak));
+void
+cp_fsm_process_urgent (cp_t *ctx) {}
+
+void
+cp_fsm_post (cp_t *ctx, cp_fsm_event_t *event) __attribute__ ((weak));
+void
+cp_fsm_post (cp_t *ctx, cp_fsm_event_t *event) {}
+
+void
+cp_fsm_trigger (cp_t *ctx, cp_fsm_event_t *event) __attribute__ ((weak));
+void
+cp_fsm_trigger (cp_t *ctx, cp_fsm_event_t *event) {}
+
+void
+cp_fsm_post_urgent (cp_t *ctx, cp_fsm_event_t *event) __attribute__ ((weak));
+void
+cp_fsm_post_urgent (cp_t *ctx, cp_fsm_event_t *event) {}
+
+void
+cp_fsm_branch_ (cp_t *ctx, cp_fsm_branch_t branch) __attribute__ ((weak));
+void
+cp_fsm_branch_ (cp_t *ctx, cp_fsm_branch_t branch) {}
+
+cp_fsm_event_t *
+cp_fsm_event_bare_new (cp_t *ctx, cp_fsm_event_type_t type)
+ __attribute__ ((weak));
+cp_fsm_event_t *
+cp_fsm_event_bare_new (cp_t *ctx, cp_fsm_event_type_t type)
+{ return INVALID_PTR; }
+
+cp_fsm_event_t *
+cp_fsm_event_mme_new (cp_t *ctx, cp_fsm_event_type_t type, cp_mme_rx_t *mme)
+ __attribute__ ((weak));
+cp_fsm_event_t *
+cp_fsm_event_mme_new (cp_t *ctx, cp_fsm_event_type_t type, cp_mme_rx_t *mme)
+{ return INVALID_PTR; }
+
+cp_fsm_event_t *
+cp_fsm_event_sta_new (cp_t *ctx, cp_fsm_event_type_t type,
+ cp_net_t *net, cp_sta_t *sta) __attribute__ ((weak));
+cp_fsm_event_t *
+cp_fsm_event_sta_new (cp_t *ctx, cp_fsm_event_type_t type,
+ cp_net_t *net, cp_sta_t *sta)
+{ return INVALID_PTR; }
+
+cp_fsm_event_t *
+cp_fsm_event_beacon_new (cp_t *ctx, cp_fsm_event_type_t type,
+ bsu_beacon_t *beacon, cp_net_t *net,
+ cp_sta_t *sta) __attribute__ ((weak));
+cp_fsm_event_t *
+cp_fsm_event_beacon_new (cp_t *ctx, cp_fsm_event_type_t type,
+ bsu_beacon_t *beacon, cp_net_t *net,
+ cp_sta_t *sta)
+{ return INVALID_PTR; }
+