Initial Source Stuff
authorPhilipp Dunkel <Philipp Dunkel@d4452222-2f33-11de-9270-010000000000>
Fri, 24 Apr 2009 16:20:58 +0000 (16:20 +0000)
committerPhilipp Dunkel <Philipp Dunkel@d4452222-2f33-11de-9270-010000000000>
Fri, 24 Apr 2009 16:20:58 +0000 (16:20 +0000)
git-svn-id: http://svn.cacert.cl/Software/BirdShack@14 d4452222-2f33-11de-9270-010000000000

TailFeather/trunk/copyright.txt [new file with mode: 0644]
TailFeather/trunk/src/comm.c [new file with mode: 0644]
TailFeather/trunk/src/comm.h [new file with mode: 0644]

diff --git a/TailFeather/trunk/copyright.txt b/TailFeather/trunk/copyright.txt
new file mode 100644 (file)
index 0000000..6a2d27d
--- /dev/null
@@ -0,0 +1 @@
+Copyright for this Project is assigned according to http://svn.cacert.cl/Documents/SourceCodeManifesto.html
diff --git a/TailFeather/trunk/src/comm.c b/TailFeather/trunk/src/comm.c
new file mode 100644 (file)
index 0000000..23c0474
--- /dev/null
@@ -0,0 +1,10 @@
+/* 
+ For copyright information see copyright.txt of the project 
+ Author: Philipp Dunkel
+*/
+
+#include "comm.h"
+
+struct comm_interface *create_comm_interface(const char *module, void *settings) {
+       return NULL;
+}
diff --git a/TailFeather/trunk/src/comm.h b/TailFeather/trunk/src/comm.h
new file mode 100644 (file)
index 0000000..f616417
--- /dev/null
@@ -0,0 +1,26 @@
+/* 
+ For copyright information see copyright.txt of the project 
+ Author: Philipp Dunkel
+*/
+
+#ifndef comm_h
+#define comm_h
+
+typedef struct comm_interface;
+
+typedef int (*comm_open_function)(struct comm_interface *interface);
+typedef int (*comm_close_function)(struct comm_interface *interface);
+typedef int (*comm_read_function)(struct comm_interface *interface, char* data, size_t length);
+typedef int (*comm_read_function)(struct comm_interface *interface, const char* data, const size_t length);
+
+typedef struct {
+       comm_open_function *open;
+       comm_close_function *close;
+       comm_read_function *read;
+       comm_write_function *write;
+       void *data;
+} comm_interface;
+
+struct comm_interface *create_comm_interface(const char *module, void *settings);
+
+#endif