mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-07 05:51:48 +00:00
MINOR: global: Added new fields for 51Degrees device detection
Added support for version 3.2 of 51Degrees C library. Added fields to store HTTP header names important to device detection other than User-Agent. Included a pool of worksets for use with Pattern device detection.
This commit is contained in:
parent
91a41cb32d
commit
10790964b0
@ -191,8 +191,15 @@ struct global {
|
|||||||
char property_separator; /* the separator to use in the response for the values. this is taken from 51degrees-property-separator from config. */
|
char property_separator; /* the separator to use in the response for the values. this is taken from 51degrees-property-separator from config. */
|
||||||
struct list property_names; /* list of properties to load into the data set. this is taken from 51degrees-property-name-list from config. */
|
struct list property_names; /* list of properties to load into the data set. this is taken from 51degrees-property-name-list from config. */
|
||||||
char *data_file_path;
|
char *data_file_path;
|
||||||
|
int header_count; /* number of HTTP headers related to device detection. */
|
||||||
|
struct chunk *header_names; /* array of HTTP header names. */
|
||||||
#ifdef FIFTYONEDEGREES_H_PATTERN_INCLUDED
|
#ifdef FIFTYONEDEGREES_H_PATTERN_INCLUDED
|
||||||
fiftyoneDegreesDataSet data_set; /* data set used with the pattern detection method. */
|
fiftyoneDegreesDataSet data_set; /* data set used with the pattern detection method. */
|
||||||
|
fiftyoneDegreesWorksetPool *pool; /* pool of worksets to avoid creating a new one for each request. */
|
||||||
|
#endif
|
||||||
|
#ifdef FIFTYONEDEGREES_H_TRIE_INCLUDED
|
||||||
|
int32_t *header_offsets; /* offsets to the HTTP header name string. */
|
||||||
|
fiftyoneDegreesDeviceOffsets device_offsets; /* Memory used for device offsets. */
|
||||||
#endif
|
#endif
|
||||||
int cache_size;
|
int cache_size;
|
||||||
} _51degrees;
|
} _51degrees;
|
||||||
|
Loading…
Reference in New Issue
Block a user