[tuxdroid-svn] r294 - daemon/trunk/libs
Status: Beta
Brought to you by:
ks156
From: neimad <c2m...@c2...> - 2007-04-27 19:00:25
|
Author: neimad Date: 2007-04-27 20:58:27 +0200 (Fri, 27 Apr 2007) New Revision: 294 Modified: daemon/trunk/libs/USBDaemon_command_tux.h daemon/trunk/libs/USBDaemon_globals.h daemon/trunk/libs/USBDaemon_pidfile.h daemon/trunk/libs/USBDaemon_status_table.h daemon/trunk/libs/USBDaemon_tcp_server.h daemon/trunk/libs/USBDaemon_usb_enum.h daemon/trunk/libs/USBDaemon_usb_readWrite.h Log: * Added preprocessor directive for inclusion of headers. Can't believe I didn't see that before ! Modified: daemon/trunk/libs/USBDaemon_command_tux.h =================================================================== --- daemon/trunk/libs/USBDaemon_command_tux.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_command_tux.h 2007-04-27 18:58:27 UTC (rev 294) @@ -21,6 +21,9 @@ /* $Id$ */ +#ifndef __USBDAEMON_COMMAND_TUX_H__ +#define __USBDAEMON_COMMAND_TUX_H__ + /*_____________________ I N C L U D E S____________________________________ */ /*_____________________ D E F I N E S ______________________________________*/ @@ -68,3 +71,5 @@ unsigned char middle_add, unsigned char higher_add); extern unsigned char send_test_sound(); + +#endif Modified: daemon/trunk/libs/USBDaemon_globals.h =================================================================== --- daemon/trunk/libs/USBDaemon_globals.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_globals.h 2007-04-27 18:58:27 UTC (rev 294) @@ -21,6 +21,9 @@ /* $Id$ */ +#ifndef __USBDAEMON_GLOBALS_H__ +#define __USBDAEMON_GLOBALS_H__ + /*_____________________ I N C L U D E S____________________________________ */ #include <usb.h> #include <pthread.h> @@ -61,3 +64,5 @@ int revision; }; extern struct version_s version; + +#endif Modified: daemon/trunk/libs/USBDaemon_pidfile.h =================================================================== --- daemon/trunk/libs/USBDaemon_pidfile.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_pidfile.h 2007-04-27 18:58:27 UTC (rev 294) @@ -21,6 +21,9 @@ /* $Id: main.c 242 2007-04-13 08:48:33Z remi $ */ +#ifndef __USBDAEMON_PIDFILE_H__ +#define __USBDAEMON_PIDFILE_H__ + /************************************************************************ */ /* Functions to deal with the pidfile @@ -64,3 +67,5 @@ * Remove the pid file and exit */ extern void terminate(int ret); + +#endif Modified: daemon/trunk/libs/USBDaemon_status_table.h =================================================================== --- daemon/trunk/libs/USBDaemon_status_table.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_status_table.h 2007-04-27 18:58:27 UTC (rev 294) @@ -21,6 +21,9 @@ /* $Id$ */ +#ifndef __USBDAEMON_STATUS_TABLE_H__ +#define __USBDAEMON_STATUS_TABLE_H__ + /*_____________________ I N C L U D E S____________________________________ */ #include "../tuxdefs/commands.h" @@ -263,3 +266,5 @@ unsigned char mouth_position, unsigned char wings_position); extern void position2_changed(unsigned char new_value); + +#endif Modified: daemon/trunk/libs/USBDaemon_tcp_server.h =================================================================== --- daemon/trunk/libs/USBDaemon_tcp_server.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_tcp_server.h 2007-04-27 18:58:27 UTC (rev 294) @@ -1,4 +1,3 @@ - /* * Tux Droid - USB Daemon * Copyright (C) 2007 C2ME Sa <rem...@c2...> @@ -21,6 +20,9 @@ /* $Id$ */ +#ifndef __USBDAEMON_TCP_SERVER_H__ +#define __USBDAEMON_TCP_SERVER_H__ + /*_____________________ I N C L U D E S____________________________________ */ #include <sys/types.h> #include <sys/socket.h> @@ -60,3 +62,5 @@ const tcp_frame_t data); extern void send_daemon_disconnected(); extern void tcp_remove_client(unsigned char id_client); + +#endif Modified: daemon/trunk/libs/USBDaemon_usb_enum.h =================================================================== --- daemon/trunk/libs/USBDaemon_usb_enum.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_usb_enum.h 2007-04-27 18:58:27 UTC (rev 294) @@ -21,6 +21,9 @@ /* $Id$ */ +#ifndef __USBDAEMON_USB_ENUM_H__ +#define __USBDAEMON_USB_ENUM_H__ + /*_____________________ I N C L U D E S____________________________________ */ #include <usb.h> @@ -43,3 +46,5 @@ extern struct usb_dev_handle *usb_open_TuxDroid(struct usb_device *device); extern void *usb_start_task(void *unused); extern int usb_init_TuxDroid(void); + +#endif Modified: daemon/trunk/libs/USBDaemon_usb_readWrite.h =================================================================== --- daemon/trunk/libs/USBDaemon_usb_readWrite.h 2007-04-24 20:25:34 UTC (rev 293) +++ daemon/trunk/libs/USBDaemon_usb_readWrite.h 2007-04-27 18:58:27 UTC (rev 294) @@ -21,6 +21,9 @@ /* $Id$ */ +#ifndef __USBDAEMON_USB_READWRITE_H__ +#define __USBDAEMON_USB_READWRITE_H__ + /*_____________________ I N C L U D E S____________________________________ */ #include <usb.h> @@ -32,3 +35,5 @@ extern void usb_read_TuxDroid(void); extern void usb_get_status_TuxDroid(void); extern unsigned char usb_write_TuxDroid(unsigned char datas[]); + +#endif |