24#ifndef FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_H_INCLUDED
25#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_H_INCLUDED
45#include "../common/config.h"
52typedef struct fiftyone_degrees_config_device_detecton_t {
82#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE_DEFAULT true
85#ifndef FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED
86#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED false
89#ifndef FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE
90#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE true
97#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE \
98FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE_DEFAULT
109#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH 500
115#define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_WITH_INDEX \
116 FIFTYONE_DEGREES_CONFIG_DEFAULT_WITH_INDEX, \
117 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE, \
118 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH, \
119 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED, \
120 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE
126#define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_NO_INDEX \
127 FIFTYONE_DEGREES_CONFIG_DEFAULT_NO_INDEX, \
128 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE, \
129 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH, \
130 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED, \
131 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE
Base configuration structure containing common configuration options, and options that apply to struc...
Definition config.h:53
Device detection configuration structure containing device detection specific configuration options,...
Definition config-dd.h:52
size_t maxMatchedUserAgentLength
Limit in bytes on the length of a single header such as User-Agent, of a pseudo header including the ...
Definition config-dd.h:69
bool allowUnmatched
True if there should be at least one matched node in order for the results to be considered valid.
Definition config-dd.h:70
fiftyoneDegreesConfigBase b
Base structure members.
Definition config-dd.h:53
bool processSpecialEvidence
Some evidence requires additional processing that doesn't need to be checked for if being used in an ...
Definition config-dd.h:73
bool updateMatchedUserAgent
True if the detection should record the matched characters from the target User-Agent.
Definition config-dd.h:54