summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 00000000..3104c264
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,26 @@
+#include <stddef.h>
+#include <assert.h>
+
+#include "core.h"
+#include "mainloop.h"
+#include "module.h"
+
+int main(int argc, char *argv[]) {
+ struct mainloop *m;
+ struct core *c;
+
+ m = mainloop_new();
+ assert(m);
+ c = core_new(m);
+ assert(c);
+
+ module_load(c, "sink-pipe", NULL);
+ module_load(c, "protocol-simple-tcp", NULL);
+
+ mainloop_run(m);
+
+ core_free(c);
+ mainloop_free(m);
+
+ return 0;
+}