◆ fiftyoneDegreesResultsDeviceDetectionFree()
void fiftyoneDegreesResultsDeviceDetectionFree | ( | fiftyoneDegreesResultsDeviceDetection * | results | ) |
Free any extra data within the results.
This calls the fiftyoneDegreesOverrideValuesFree method to free the overrides within the results.
- Parameters
-
- results - pointer to the results to free
◆ fiftyoneDegreesResultsDeviceDetectionInit()
void fiftyoneDegreesResultsDeviceDetectionInit ( fiftyoneDegreesResultsDeviceDetection * results, fiftyoneDegreesDataSetDeviceDetection * dataSet, uint32_t overridesCapacity ) Initialise a set of results by setting the data set they are associated with.
Also initialise the overrides using the fiftyoneDegreesOverrideValuesCreate method.
- Parameters
-
- results - pointer to the results to initialise
- dataSet - pointer to the data set which will be using the results
- overridesCapacity - size of the overrides structure
◆ fiftyoneDegreesResultsUserAgentFree()
void fiftyoneDegreesResultsUserAgentFree ( fiftyoneDegreesResultUserAgent * result ) Free the memory allocated in a single result,.
This frees the matched User-Agent.
- Parameters
-
- result - pointer to the result to free
◆ fiftyoneDegreesResultsUserAgentInit()
void fiftyoneDegreesResultsUserAgentInit ( const fiftyoneDegreesConfigDeviceDetection * config, fiftyoneDegreesResultUserAgent * result ) 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 '_'.
- Parameters
-
- config - pointer to the configuration to use
- result - pointer to the result to initialise
◆ fiftyoneDegreesResultsUserAgentReset()
void fiftyoneDegreesResultsUserAgentReset ( const fiftyoneDegreesConfigDeviceDetection * config, fiftyoneDegreesResultUserAgent * result ) 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 '_'.
- Parameters
-
- config - pointer to the configuration to use
- result - pointer to the result to reset