• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 7.1.0.193
GDCommon.h
Go to the documentation of this file.
1 /*
2  * (c) 2017 BlackBerry Limited. All rights reserved.
3  */
4 
5 #ifndef GD_COMMON_H
6 #define GD_COMMON_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #ifndef GD_C_API
13 # if !defined(_WIN32)
14 # define GD_C_API __attribute__((visibility("default")))
15 # else
16 # define GD_C_API
17 # endif
18 #endif
19 
20 #ifndef GD_C_API_EXT
21 # define GD_C_API_EXT
22 #endif
23 
24 #include <stdint.h>
25 #include <stddef.h>
26 
33 GD_C_API extern const int32_t GDSuccess;
34 
41 GD_C_API extern const int32_t GDErrorOutOfMemory;
42 
49 GD_C_API extern const int32_t GDErrorNotAuthorized;
50 
57 GD_C_API extern const int32_t GDErrorNotFound;
58 
67 GD_C_API extern const int32_t GDErrorNotMapped;
68 
75 GD_C_API extern const int32_t GDErrorWrongPassword;
76 
83 GD_C_API extern const int32_t GDErrorGeneral;
84 
91 GD_C_API extern const int32_t GDErrorInvalidArgument;
92 
103 GD_C_API extern const int32_t GDErrorNotAllowed;
104 
112 struct GD_C_API GDError {
113 
117  int32_t code;
118 
122  const char* description;
123 };
124 
136 struct GD_C_API GDData {
138  void* data;
139 
141  size_t size;
142 
144  char* type;
145 };
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif
GDErrorNotAllowed
const int32_t GDErrorNotAllowed
Not allowed.
GDError::code
int32_t code
Numeric code for the error, always one of the GDError constants defined in this header file.
Definition: GDCommon.h:117
GDErrorNotFound
const int32_t GDErrorNotFound
Not found.
GDError::description
const char * description
Error message that is suitable to display to the end user, at least for diagnostic purposes.
Definition: GDCommon.h:122
GDData::size
size_t size
Size of the data.
Definition: GDCommon.h:141
GDSuccess
const int32_t GDSuccess
Success.
GDData::type
char * type
Indication of the type of data in this encapsulation.
Definition: GDCommon.h:144
GDErrorGeneral
const int32_t GDErrorGeneral
General error.
GDErrorNotMapped
const int32_t GDErrorNotMapped
Not mapped to a User Credential Profile.
GDData
Data encapsulation structure.
Definition: GDCommon.h:136
GDData::data
void * data
Binary data.
Definition: GDCommon.h:138
GDError
Error structure.
Definition: GDCommon.h:112
GDErrorWrongPassword
const int32_t GDErrorWrongPassword
Wrong password.
GDErrorNotAuthorized
const int32_t GDErrorNotAuthorized
Not authorized.
GDErrorOutOfMemory
const int32_t GDErrorOutOfMemory
Out of memory.
GDErrorInvalidArgument
const int32_t GDErrorInvalidArgument
Invalid argument.