\r\n

51Degrees Device Detection C/C++  4.4

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

status.h

1 /* *********************************************************************
2  * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3  * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4  * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5  *
6  * This Original Work is licensed under the European Union Public Licence
7  * (EUPL) 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 #ifndef FIFTYONE_DEGREES_INIT_H_INCLUDED
24 #define FIFTYONE_DEGREES_INIT_H_INCLUDED
25 
71 #include <stdint.h>
72 #include <string.h>
73 #include <stdio.h>
74 #include "common.h"
75 
77 typedef enum e_fiftyone_degrees_status_code {
142 
152 EXTERNAL const char* fiftyoneDegreesStatusGetMessage(
154  const char *fileName);
155 
160 #endif
Unknown file error.
Definition: status.h:86
Data structure not readable.
Definition: status.h:80
The data file could not be created.
Definition: status.h:107
File permission denied.
Definition: status.h:111
End of yaml documents read.
Definition: status.h:117
The configuration provided to create a collection could not be used to create a valid collection.
Definition: status.h:122
const char * fiftyoneDegreesStatusGetMessage(fiftyoneDegreesStatusCode status, const char *fileName)
Returns an English error message for the status code allocating memory needed to store the message.
fiftyoneDegreesStatusCode
Status returned from the initialisation of a resource.
Definition: status.h:77
None of the required properties could be found.
Definition: status.h:94
Offset out of range.
Definition: status.h:134
There were not enough handles available to retrieve data from the source.
Definition: status.h:128
Working pointer exceeded the amount of memory containing the data.
Definition: status.h:89
Index out of range.
Definition: status.h:132
Read failure.
Definition: status.h:137
Lack of memory.
Definition: status.h:79
IP address format is incorrect.
Definition: status.h:138
The data file was busy.
Definition: status.h:85
End of file.
Definition: status.h:119
Should never be returned to the caller.
Definition: status.h:87
Data not the required version.
Definition: status.h:81
The profile id represents an empty profile.
Definition: status.h:96
The file path is longer than the available memory available to store it.
Definition: status.h:112
Seek failure.
Definition: status.h:136
The data file couldn't be found.
Definition: status.h:83
The file or directory already exists, so could not be created.
Definition: status.h:104
There was an error getting an item from a collection due to too many concurrent operations.
Definition: status.h:98
An invalid config was provided.
Definition: status.h:127
The data file could not be cread.
Definition: status.h:109
A key pointer was not set.
Definition: status.h:92
All okay.
Definition: status.h:78
Error creating temp file.
Definition: status.h:140
Too many files are open.
Definition: status.h:93
End of a yaml document read.
Definition: status.h:115
There was an error encoding characters of a string.
Definition: status.h:120
The data file could not be copied.
Definition: status.h:102