summaryrefslogtreecommitdiff
path: root/cesar/maximus/stationtest/src/test_cb.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/maximus/stationtest/src/test_cb.c')
-rw-r--r--cesar/maximus/stationtest/src/test_cb.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/cesar/maximus/stationtest/src/test_cb.c b/cesar/maximus/stationtest/src/test_cb.c
new file mode 100644
index 0000000000..83e9f4ce10
--- /dev/null
+++ b/cesar/maximus/stationtest/src/test_cb.c
@@ -0,0 +1,41 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2007 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file test_cb.c
+ * \brief station executable used for test cb program
+ * \ingroup
+ */
+
+#include <cyg/infra/diag.h>
+#include <cyg/kernel/kapi.h>
+#include <errno.h>
+#include "common/std.h"
+#include "host/station.h"
+
+extern station_ctx_t my_station;
+
+int get_seg (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data)
+{
+ diag_write_string("=> get_seg\n");
+
+ /* now make the return parameter list */
+ fcall_param_reset(*param);
+
+ return 0;
+}
+
+int main(void)
+{
+ station_log_set_level(&my_station, STATION_LOG_DEBUG);
+ station_log_set_mask(&my_station, STATION_LOGTYPE_ALL);
+ my_station.pipe_log_fd = 1;
+
+ fcall_register(my_station.fcall, "get_seg", (void*)&get_seg, NULL);
+
+ return 0;
+}