51Degrees Device Detection C/C++  4.1

A device detection library that is used natively or by 51Degrees products

config-dd.h

1 /* *********************************************************************
2  * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3  * Copyright 2019 51 Degrees Mobile Experts Limited, 5 Charlotte Close,
4  * Caversham, Reading, Berkshire, United Kingdom RG4 7BY.
5  *
6  * This Original Work is licensed under the European Union Public Licence (EUPL)
7  * v.1.2 and is subject to its terms as set out below.
8  *
9  * If a copy of the EUPL was not distributed with this file, You can obtain
10  * one at https://opensource.org/licenses/EUPL-1.2.
11  *
12  * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13  * amended by the European Commission) shall be deemed incompatible for
14  * the purposes of the Work and the provisions of the compatibility
15  * clause in Article 5 of the EUPL shall not apply.
16  *
17  * If using the Work as, or as part of, a network application, by
18  * including the attribution notice(s) required under Article 5 of the EUPL
19  * in the end user terms of the application under an appropriate heading,
20  * such notice(s) shall fulfill the requirements of that article.
21  * ********************************************************************* */
22 
23 
24 #ifndef FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_H_INCLUDED
25 #define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_H_INCLUDED
26 
44 #include <stdint.h>
45 #include "common-cxx/config.h"
46 
52 typedef struct fiftyone_degrees_config_device_detecton_t {
64 
66 #define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE_DEFAULT true
67 
69 #ifndef FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED
70 #define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED false
71 #endif
72 
77 #define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE \
78 FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE_DEFAULT
79 
83 #define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT \
84  FIFTYONE_DEGREES_CONFIG_DEFAULT, \
85  FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE, \
86  500, /* Default to 500 characters for the matched User-Agent */ \
87  FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED
88 
93 #endif
bool updateMatchedUserAgent
True if the detection should record the matched characters from the target User-Agent.
Definition: config-dd.h:54
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:60
Base configuration structure containing common configuration options, and options that apply to struc...
Definition: config.h:49
fiftyoneDegreesConfigBase b
Base structure members.
Definition: config-dd.h:53
Device detection configuration structure containing device detection specific configuration options,...
Definition: config-dd.h:52
size_t maxMatchedUserAgentLength
Number of characters to consider in the matched User-Agent.
Definition: config-dd.h:57