+++ /dev/null
-#ifndef _IMPORT_WURFL_H
-#define _IMPORT_WURFL_H
-
-#include <wurfl/wurfl.h>
-
-int ha_wurfl_init(void);
-void ha_wurfl_deinit(void);
-
-typedef char *(*PROP_CALLBACK_FUNC)(wurfl_handle wHandle, wurfl_device_handle dHandle);
-
-enum wurfl_data_type {
- HA_WURFL_DATA_TYPE_UNKNOWN = 0,
- HA_WURFL_DATA_TYPE_CAP = 100,
- HA_WURFL_DATA_TYPE_VCAP = 200,
- HA_WURFL_DATA_TYPE_PROPERTY = 300
-};
-
-typedef struct {
- char *name;
- enum wurfl_data_type type;
- PROP_CALLBACK_FUNC func_callback;
- struct ebmb_node nd;
-} wurfl_data_t;
-
-#endif
--- /dev/null
+#ifndef _PROTO_WURFL_H
+#define _PROTO_WURFL_H
+
+int ha_wurfl_init(void);
+void ha_wurfl_deinit(void);
+
+#endif
#include <import/51d.h>
#endif
-#ifdef USE_WURFL
-#include <import/wurfl.h>
-#endif
-
#ifndef UNIX_MAX_PATH
#define UNIX_MAX_PATH 108
#endif
struct list patch_file_list; /* the list of WURFL patch file to use */
char information_list_separator; /* the separator used in request to separate values */
struct list information_list; /* the list of WURFL data to return into request */
- wurfl_handle handle; /* the handle to WURFL engine */
+ void *handle; /* the handle to WURFL engine */
struct eb_root btree; /* btree containing info (name/type) on WURFL data to return */
} wurfl;
#endif
#include <proto/ssl_sock.h>
#endif
+#ifdef USE_WURFL
+#include <proto/wurfl.h>
+#endif
+
#ifdef USE_DEVICEATLAS
#include <import/da.h>
#endif
#include <import/51d.h>
#endif
-#ifdef USE_WURFL
-#include <import/wurfl.h>
-#endif
-
/*********************************************************************/
extern const struct comp_algo comp_algos[];
#include <proto/log.h>
#include <proto/proto_http.h>
#include <proto/sample.h>
+#include <proto/wurfl.h>
#include <ebsttree.h>
#include <ebmbtree.h>
-#include <import/wurfl.h>
+
+#include <wurfl/wurfl.h>
#ifdef WURFL_DEBUG
#define HA_WURFL_MAX_HEADER_LENGTH 1024
+typedef char *(*PROP_CALLBACK_FUNC)(wurfl_handle wHandle, wurfl_device_handle dHandle);
+
+enum wurfl_data_type {
+ HA_WURFL_DATA_TYPE_UNKNOWN = 0,
+ HA_WURFL_DATA_TYPE_CAP = 100,
+ HA_WURFL_DATA_TYPE_VCAP = 200,
+ HA_WURFL_DATA_TYPE_PROPERTY = 300
+};
+
+typedef struct {
+ char *name;
+ enum wurfl_data_type type;
+ PROP_CALLBACK_FUNC func_callback;
+ struct ebmb_node nd;
+} wurfl_data_t;
+
static const char HA_WURFL_MODULE_VERSION[] = "1.0";
static const char HA_WURFL_ISDEVROOT_FALSE[] = "FALSE";
static const char HA_WURFL_ISDEVROOT_TRUE[] = "TRUE";