moved raspberry and router gpio to pi_as_powerwitch on github
[svn42.git] / door_daemon / datatypes.h
index 3cb3967..cfac0c4 100644 (file)
@@ -6,8 +6,9 @@
  *  This file is part of door_daemon.
  *
  *  door_daemon is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License version 3 as
- *  published by the Free Software Foundation.
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  any later version.
  *
  *  door_daemon is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -18,8 +19,8 @@
  *  along with door_daemon. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _DATATYPES_H_
-#define _DATATYPES_H_
+#ifndef DOOR_DAEMON_datatypes_h_INCLUDED
+#define DOOR_DAEMON_datatypes_h_INCLUDED
 
 #include <stdint.h>
 #include <arpa/inet.h>
@@ -39,6 +40,10 @@ struct buffer_struct {
 };
 typedef struct buffer_struct buffer_t;
 
-typedef char read_buffer_t[100];
+struct read_buffer_struct {
+  u_int32_t offset;
+  u_int8_t buf[100];
+};
+typedef struct read_buffer_struct read_buffer_t;
 
 #endif