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

Device Detection Config

Detailed Description

Configuration for building device detection data sets.

Introduction

Configuration structure extending fiftyoneDegreesConfigBase type with options specific to device detection. This adds configuration options around how a User-Agent is handled.

For further info see FiftyOneDegreesConfig

Collaboration diagram for Device Detection Config:

Structs

struct  fiftyoneDegreesConfigDeviceDetection
 Device detection configuration structure containing device detection specific configuration options, and options that apply to structures and methods in device detection libraries. More...

Macros

#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE_DEFAULT   true
 Default value for the FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE macro.
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED   false
 Default value for allow unmatched used in the default configuration.
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE   true
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE   FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE_DEFAULT
 Update matched User-Agent setting used in the default configuration macro #FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT.
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH   500
 Default limit in bytes for maxMatchedUserAgentLength.
#define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_WITH_INDEX
 Default value for the fiftyoneDegreesConfigDeviceDetection structure with index.
#define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_NO_INDEX
 Default value for the fiftyoneDegreesConfigDeviceDetection structure without index.

Macro Definition Documentation

◆ FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH

#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH   500

Default limit in bytes for maxMatchedUserAgentLength.

No RFC or browser sets a limit on these headers. In the 20,000 evidence sample the longest pseudo header is 316 bytes and the longest User-Agent 331, with none over 500. A longer value is ignored, because in practice that does not happen.

◆ FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_NO_INDEX

#define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_NO_INDEX
Value:
FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_MAX_LENGTH
Default limit in bytes for maxMatchedUserAgentLength.
Definition config-dd.h:106
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_UPDATE
Update matched User-Agent setting used in the default configuration macro FIFTYONE_DEGREES_DEVICE_DET...
Definition config-dd.h:97
#define FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_UNMATCHED
Default value for allow unmatched used in the default configuration.
Definition config-dd.h:86
#define FIFTYONE_DEGREES_CONFIG_DEFAULT_NO_INDEX
Default value for the fiftyoneDegreesConfigBase structure without index.
Definition config.h:114

Default value for the fiftyoneDegreesConfigDeviceDetection structure without index.

◆ FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_WITH_INDEX

#define FIFTYONE_DEGREES_DEVICE_DETECTION_CONFIG_DEFAULT_WITH_INDEX
Value:
FIFTYONE_DEGREES_CONFIG_DEVICE_DETECTION_DEFAULT_SPECIAL_EVIDENCE
#define FIFTYONE_DEGREES_CONFIG_DEFAULT_WITH_INDEX
Default value for the fiftyoneDegreesConfigBase structure with index.
Definition config.h:101

Default value for the fiftyoneDegreesConfigDeviceDetection structure with index.