1 #ifndef _ARDRONE_INI_H_
2 #define _ARDRONE_INI_H_
6 #include <linux/joystick.h>
16 #include <sys/types.h>
18 #include <sys/ioctl.h>
20 #include <libxml/encoding.h>
21 #include <libxml/xmlwriter.h>
22 #include <libxml/xmlreader.h>
23 #include <libxml/tree.h>
24 #include <libxml/parser.h>
25 #include <libxml/xpath.h>
29 #define FILENAME "ardrone.xml"
31 enum { NONE = 0, AXIS, HAT, BUTTON };
52 extern input_device_t control_device;
54 C_RESULT open_control_device(void);
55 C_RESULT update_control_device(void);
56 C_RESULT close_control_device(void);
66 Control_Type commands[NUM_COMMAND];
69 extern Controller_info *control;
70 extern Controller_info *default_control;
71 extern GList *devices;
73 gboolean search_devices(GList **list_controllers);
76 void save_init(Controller_info *def);
78 #endif // _ARDRONE_INI_H_