1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* *********************************************************************
* This Original Work is copyright of 51 Degrees Mobile Experts Limited.
* Copyright 2022 51 Degrees Mobile Experts Limited, Davidson House,
* Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
*
* This Original Work is licensed under the European Union Public Licence
* (EUPL) v.1.2 and is subject to its terms as set out below.
*
* If a copy of the EUPL was not distributed with this file, You can obtain
* one at https://opensource.org/licenses/EUPL-1.2.
*
* The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
* amended by the European Commission) shall be deemed incompatible for
* the purposes of the Work and the provisions of the compatibility
* clause in Article 5 of the EUPL shall not apply.
*
* If using the Work as, or as part of, a network application, by
* including the attribution notice(s) required under Article 5 of the EUPL
* in the end user terms of the application under an appropriate heading,
* such notice(s) shall fulfill the requirements of that article.
* ********************************************************************* */
/**
* @ingroup FiftyOneDegreesDeviceDetection
* @defgroup FiftyOneDegreesDeviceDetectionResults Results
*
* Structure returned by a device detection engine's process method(s),
* containing values.
*
* @copydetails FiftyOneDegreesResults
*
* For more info, see @link FiftyOneDegreesResults @endlink
*
* @{
*/
/**
* Singular User-Agent result returned by a device detection process method.
* This contains data describing the matched User-Agent string.
*/
typedef struct fiftyone_degrees_result_user_agent_t fiftyoneDegreesResultUserAgent;
/**
* Device detection specific results structure which any device detection
* processing results should extend. This adds an array of value overrides to
* the base results.
*/
typedef struct fiftyone_degrees_results_device_detection_t fiftyoneDegreesResultsDeviceDetection;
/**
* Initialise a set of results by setting the data set they are associated with.
* Also initialise the overrides using the #fiftyoneDegreesOverrideValuesCreate
* method.
* @param results pointer to the results to initialise
* @param dataSet pointer to the data set which will be using the results
* @param overridesCapacity size of the overrides structure
*/
void ;
/**
* Free any extra data within the results. This calls the
* #fiftyoneDegreesOverrideValuesFree method to free the overrides within the
* results.
* @param results pointer to the results to free
*/
void ;
/**
* Reset the matched and target User-Agents in the result. This means nulling
* the target User-Agent, and setting all characters of the matched User-Agent
* to '_'.
* @param config pointer to the configuration to use
* @param result pointer to the result to reset
*/
void ;
/**
* Initialise a single result using the configuration provided. This allocates
* the memory needed, initialises NULL pointers, and sets all characters of the
* matched User-Agent to '_'.
* @param config pointer to the configuration to use
* @param result pointer to the result to initialise
*/
void ;
/**
* Free the memory allocated in a single result,. This frees the matched
* User-Agent.
* @param result pointer to the result to free
*/
void ;
/**
* @}
*/