51Degrees Common C/C++  4.1

A shared functionality library that is used by 51Degrees products

status.h

1 /* *********************************************************************
2  * This Source Code Form 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 Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0.
8  *
9  * If a copy of the MPL was not distributed with this file, You can obtain
10  * one at http://mozilla.org/MPL/2.0/.
11  *
12  * This Source Code Form is "Incompatible With Secondary Licenses", as
13  * defined by the Mozilla Public License, v. 2.0.
14  * ********************************************************************* */
15 
16 #ifndef FIFTYONE_DEGREES_INIT_H_INCLUDED
17 #define FIFTYONE_DEGREES_INIT_H_INCLUDED
18 
64 #include <stdint.h>
65 #include <string.h>
66 #include <stdio.h>
67 
68 #ifdef __cplusplus
69 #define EXTERNAL extern "C"
70 #else
71 #define EXTERNAL
72 #endif
73 
75 typedef enum e_fiftyone_degrees_status_code {
127 
137 EXTERNAL const char* fiftyoneDegreesStatusGetMessage(
139  const char *fileName);
140 
145 #endif
Unknown file error.
Definition: status.h:84
Data structure not readable.
Definition: status.h:78
The data file could not be created.
Definition: status.h:102
File permission denied.
Definition: status.h:104
The configuration provided to create a collection could not be used to create a valid collection.
Definition: status.h:110
fiftyoneDegreesStatusCode
Status returned from the initialisation of a resource.
Definition: status.h:75
None of the required properties could be found.
Definition: status.h:92
Offset out of range.
Definition: status.h:122
There were not enough handles available to retrieve data from the source.
Definition: status.h:116
Working pointer exceeded the amount of memory containing the data.
Definition: status.h:87
Index out of range.
Definition: status.h:120
Read failure.
Definition: status.h:125
Lack of memory.
Definition: status.h:77
The data file was busy.
Definition: status.h:83
Should never be returned to the caller.
Definition: status.h:85
Data not the required version.
Definition: status.h:79
The profile id represents an empty profile.
Definition: status.h:94
The file path is longer than the available memory available to store it.
Definition: status.h:105
Seek failure.
Definition: status.h:124
The data file couldn't be found.
Definition: status.h:81
There was an error getting an item from a collection due to too many concurrent operations.
Definition: status.h:96
An invalid config was provided.
Definition: status.h:115
A key pointer was not set.
Definition: status.h:90
All okay.
Definition: status.h:76
Too many files are open.
Definition: status.h:91
EXTERNAL const char * fiftyoneDegreesStatusGetMessage(fiftyoneDegreesStatusCode status, const char *fileName)
Returns an English error message for the status code allocating memory needed to store the message.
Definition: status.c:99
There was an error encoding characters of a string.
Definition: status.h:108
The data file could not be copied.
Definition: status.h:100