blackberry.com
BlackBerry Dynamics
Runtime library for iOS applications
from the application developer portal

GDCommon.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2017 BlackBerry Limited. All rights reserved.
00003  */
00004 
00005 #ifndef GD_COMMON_H
00006 #define GD_COMMON_H
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011   
00012 #ifndef GD_C_API
00013 #   if !defined(_WIN32)
00014 #       define GD_C_API __attribute__((visibility("default")))
00015 #   else
00016 #       define GD_C_API
00017 #   endif
00018 #endif
00019   
00020 #ifndef GD_C_API_EXT
00021 #   define GD_C_API_EXT
00022 #endif
00023 
00024 #include <stdint.h>
00025 #include <stddef.h>
00026 
00033 GD_C_API extern const int32_t GDSuccess;
00034 
00041 GD_C_API extern const int32_t GDErrorOutOfMemory;
00042 
00049 GD_C_API extern const int32_t GDErrorNotAuthorized;
00050 
00057 GD_C_API extern const int32_t GDErrorNotFound;
00058 
00067 GD_C_API extern const int32_t GDErrorNotMapped;
00068 
00075 GD_C_API extern const int32_t GDErrorWrongPassword;
00076 
00083 GD_C_API extern const int32_t GDErrorGeneral;
00084 
00091 GD_C_API extern const int32_t GDErrorInvalidArgument;
00092     
00103 GD_C_API extern const int32_t GDErrorNotAllowed;
00104 
00112 struct GD_C_API GDError {
00113     
00117     int32_t code;
00118     
00122     const char* description;
00123 };
00124 
00136 struct GD_C_API GDData {
00138     void* data;
00139     
00141     size_t size;
00142     
00144     char* type;
00145 };
00146 
00147 #ifdef __cplusplus
00148 }
00149 #endif
00150 
00151 #endif