18 #ifndef LIBMDM_DOC_TIZEN_ERROR_H 19 #define LIBMDM_DOC_TIZEN_ERROR_H 32 #define TIZEN_ERROR_MAX_PLATFORM_ERROR 0 33 #define TIZEN_ERROR_MIN_PLATFORM_ERROR (-1073741824LL) 36 #define TIZEN_ERROR_MIN_MODULE_ERROR (-2147483648LL) 39 #define TIZEN_ERROR_MAX_MODULE_ERROR (TIZEN_ERROR_MIN_PLATFORM_ERROR - 1) 42 #define TIZEN_ERROR_IS_OK(x) (0 <= (x)) 45 #define TIZEN_ERROR_IS_ERROR(x) (!TIZEN_ERROR_IS_OK(x)) 48 #define TIZEN_ERROR_IS_PLATFORM_ERROR(x) (TIZEN_ERROR_MIN_PLATFORM_ERROR <= (x) && (x) < 0) 51 #define TIZEN_ERROR_APPLICATION_CLASS -0x00000200 53 #define TIZEN_ERROR_BASE_CLASS -0x00000400 55 #define TIZEN_ERROR_CONTENT_CLASS -0x00000800 57 #define TIZEN_ERROR_LOCATION_CLASS -0x00001000 59 #define TIZEN_ERROR_MULTIMEDIA_CLASS -0x00002000 61 #define TIZEN_ERROR_MESSAGING_CLASS -0x00004000 63 #define TIZEN_ERROR_NETWORK_CLASS -0x00008000 65 #define TIZEN_ERROR_SOCIAL_CLASS -0x00010000 67 #define TIZEN_ERROR_SYSTEM_CLASS -0x00020000 69 #define TIZEN_ERROR_TELEPHONY_CLASS -0x00040000 71 #define TIZEN_ERROR_UI_CLASS -0x00080000 73 #define TIZEN_ERROR_UIX_CLASS -0x00100000 75 #define TIZEN_ERROR_AD_CLASS -0x00200000 77 #define TIZEN_ERROR_WEB_CLASS -0x00400000 79 #define TIZEN_ERROR_DRM_CLASS -0x00800000 81 #define TIZEN_ERROR_ACCOUNT_CLASS -0x01000000 84 #define TIZEN_ERROR_ACCOUNT -0x01000000 86 #define TIZEN_ERROR_APPLICATION -0x01100000 88 #define TIZEN_ERROR_APPLICATION_MANAGER -0x01110000 90 #define TIZEN_ERROR_BADGE -0x01120000 92 #define TIZEN_ERROR_MESSAGE_PORT -0x01130000 94 #define TIZEN_ERROR_NOTIFICATION -0x01140000 96 #define TIZEN_ERROR_PACKAGE_MANAGER -0x01150000 98 #define TIZEN_ERROR_SHORTCUT -0x01160000 100 #define TIZEN_ERROR_UI_GADGET -0x01170000 102 #define TIZEN_ERROR_BUNDLE -0x01180000 104 #define TIZEN_ERROR_DATA_CONTROL -0x01190000 106 #define TIZEN_ERROR_SERVICE_APPLICATION -0x01200000 108 #define TIZEN_ERROR_UTILITY_ICU -0x01500000 110 #define TIZEN_ERROR_MIME_TYPE -0x01600000 112 #define TIZEN_ERROR_MEDIA_CONTENT -0x01610000 114 #define TIZEN_ERROR_EMAIL_SERVICE -0x01700000 116 #define TIZEN_ERROR_MESSAGING_SERVICE -0x01710000 118 #define TIZEN_ERROR_PUSH -0x01720000 120 #define TIZEN_ERROR_AUDIO_IO -0x01900000 122 #define TIZEN_ERROR_CAMERA -0x01910000 124 #define TIZEN_ERROR_IMAGE_UTIL -0x01920000 126 #define TIZEN_ERROR_METADATA_EXTRACTOR -0x01930000 128 #define TIZEN_ERROR_PLAYER -0x01940000 130 #define TIZEN_ERROR_RECORDER -0x01950000 132 #define TIZEN_ERROR_SOUND_MANAGER -0x01960000 134 #define TIZEN_ERROR_TONE_PLAYER -0x01970000 136 #define TIZEN_ERROR_VIDEO_UTIL -0x01980000 138 #define TIZEN_ERROR_WAV_PLAYER -0x01990000 140 #define TIZEN_ERROR_RADIO -0x019A0000 142 #define TIZEN_ERROR_MEDIACODEC -0x019B0000 144 #define TIZEN_ERROR_BLUETOOTH -0x01C00000 146 #define TIZEN_ERROR_CONNECTION -0x01C10000 148 #define TIZEN_ERROR_NFC -0x01C20000 150 #define TIZEN_ERROR_SERIAL -0x01C30000 152 #define TIZEN_ERROR_TETHERING -0x01C40000 154 #define TIZEN_ERROR_WIFI -0x01C50000 156 #define TIZEN_ERROR_WIFI_DIRECT -0x01C60000 158 #define TIZEN_ERROR_PRIVACY_MANAGER -0x01E00000 160 #define TIZEN_ERROR_KEY_MANAGER -0x01E10000 162 #define TIZEN_ERROR_PRIVILEGE_INFORMATION -0x01E20000 164 #define TIZEN_ERROR_CALENDAR -0x02000000 166 #define TIZEN_ERROR_CONTACTS -0x02010000 168 #define TIZEN_ERROR_STORAGE -0x02200000 170 #define TIZEN_ERROR_VCONF -0x02210000 172 #define TIZEN_ERROR_DEVICE -0x02400000 174 #define TIZEN_ERROR_DLOG -0x02410000 176 #define TIZEN_ERROR_MEDIA_KEY -0x02420000 178 #define TIZEN_ERROR_RUNTIME_INFORMATION -0x02430000 180 #define TIZEN_ERROR_SENSOR -0x02440000 182 #define TIZEN_ERROR_SYSTEM_INFORMATION -0x02450000 184 #define TIZEN_ERROR_SYSTEM_SETTING -0x02460000 186 #define TIZEN_ERROR_SYSTEM_RESOURCE -0x02470000 188 #define TIZEN_ERROR_CONTEXT -0x02480000 190 #define TIZEN_ERROR_TELEPHONY -0x02600000 192 #define TIZEN_ERROR_EFL_UTIL -0x02800000 194 #define TIZEN_ERROR_UTILX -0x02810000 196 #define TIZEN_ERROR_NATIVE_BUFFER -0x02820000 198 #define TIZEN_ERROR_TBM -0x02830000 200 #define TIZEN_ERROR_DOWNLOAD -0x02A00000 202 #define TIZEN_ERROR_WEBVIEW -0x02A10000 204 #define TIZEN_ERROR_LOCATION_MANAGER -0x02C00000 206 #define TIZEN_ERROR_STT -0x02F00000 208 #define TIZEN_ERROR_TTS -0x02F10000 216 TIZEN_ERROR_NONE = 0,
217 TIZEN_ERROR_NOT_PERMITTED = -EPERM,
218 TIZEN_ERROR_NO_SUCH_FILE = -ENOENT,
219 TIZEN_ERROR_NO_SUCH_PROCESS = -ESRCH,
220 TIZEN_ERROR_INTERRUPTED_SYS_CALL = -EINTR,
221 TIZEN_ERROR_IO_ERROR = -EIO,
222 TIZEN_ERROR_NO_SUCH_DEVICE = -ENXIO,
223 TIZEN_ERROR_ARGUMENT_LIST_TOO_LONG = -E2BIG,
224 TIZEN_ERROR_EXEC_FORMAT_ERROR = -ENOEXEC,
225 TIZEN_ERROR_BAD_FILE_NUMBER = -EBADF,
227 TIZEN_ERROR_TRY_AGAIN = -EAGAIN,
228 TIZEN_ERROR_OUT_OF_MEMORY = -ENOMEM,
229 TIZEN_ERROR_PERMISSION_DENIED = -EACCES,
230 TIZEN_ERROR_BAD_ADDRESS = -EFAULT,
231 TIZEN_ERROR_BLOCK_DEVICE_REQUIRED = -ENOTBLK,
232 TIZEN_ERROR_RESOURCE_BUSY = -EBUSY,
233 TIZEN_ERROR_FILE_EXISTS = -EEXIST,
234 TIZEN_ERROR_CROSS_DEVICE_LINK = -EXDEV,
235 TIZEN_ERROR_NOT_A_DIRECTORY = -ENOTDIR,
237 TIZEN_ERROR_IS_A_DIRECTORY = -EISDIR,
238 TIZEN_ERROR_INVALID_PARAMETER = -EINVAL,
239 TIZEN_ERROR_FILE_TABLE_OVERFLOW = -ENFILE,
240 TIZEN_ERROR_TOO_MANY_OPEN_FILES = -EMFILE,
241 TIZEN_ERROR_TOO_NOT_A_TERMINAL = -ENOTTY,
242 TIZEN_ERROR_TOO_TEXT_FILE_BUSY = -ETXTBSY,
243 TIZEN_ERROR_FILE_TOO_LARGE = -EFBIG,
244 TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE = -ENOSPC,
245 TIZEN_ERROR_ILLEGAL_SEEK = -ESPIPE,
246 TIZEN_ERROR_READ_ONLY_FILESYSTEM = -EROFS,
247 TIZEN_ERROR_NO_DATA = -ENODATA,
249 TIZEN_ERROR_TOO_MANY_LINKS = -EMLINK,
250 TIZEN_ERROR_BROKEN_PIPE = -EPIPE,
251 TIZEN_ERROR_ARGUMENT_OUT_OF_DOMAIN = -EDOM,
252 TIZEN_ERROR_RESULT_OUT_OF_RANGE = -ERANGE,
253 TIZEN_ERROR_WOULD_CAUSE_DEADLOCK = -EDEADLK,
254 TIZEN_ERROR_FILE_NAME_TOO_LONG = -ENAMETOOLONG,
255 TIZEN_ERROR_FILE_NO_LOCKS_AVAILABLE = -ENOLCK,
256 TIZEN_ERROR_INVALID_OPERATION = -ENOSYS,
257 TIZEN_ERROR_DIR_NOT_EMPTY = -ENOTEMPTY,
258 TIZEN_ERROR_TOO_MANY_SYMBOLIC_LINKS = -ELOOP,
259 TIZEN_ERROR_WOULD_BLOCK = TIZEN_ERROR_TRY_AGAIN,
260 TIZEN_ERROR_CORRUPTED_SHARED_LIB = -ELIBBAD,
261 TIZEN_ERROR_LIB_SECTION_CORRUPTED = -ELIBSCN,
262 TIZEN_ERROR_LINK_TOO_MANY_SHARED_LIB = -ELIBMAX,
263 TIZEN_ERROR_SHARED_LIB_EXEC = -ELIBEXEC,
264 TIZEN_ERROR_ILLEGAL_BYTE_SEQ = -EILSEQ,
265 TIZEN_ERROR_SYSTEM_CALL_RESTART = -ERESTART,
266 TIZEN_ERROR_STREAMS_PIPE = -ESTRPIPE,
267 TIZEN_ERROR_TOO_MANY_USERS = -EUSERS,
268 TIZEN_ERROR_NON_SOCKET = -ENOTSOCK,
269 TIZEN_ERROR_NO_DEST_ADDRESS = -EDESTADDRREQ,
270 TIZEN_ERROR_MSG_TOO_LONG = -EMSGSIZE,
271 TIZEN_ERROR_PROTOCOL_WRONG_TYPE = -EPROTOTYPE,
272 TIZEN_ERROR_PROTOCOL_NOT_AVALIABLE = -ENOPROTOOPT,
273 TIZEN_ERROR_PROTOCOL_NOT_SUPPORTED = -EPROTONOSUPPORT,
274 TIZEN_ERROR_SOCKET_TYPE_NOT_SUPPORTED = -ESOCKTNOSUPPORT,
275 TIZEN_ERROR_ENDPOINT_OPERATIN_NOT_SUPPORTED = -EOPNOTSUPP,
276 TIZEN_ERROR_PROTOCOL_FAMILY_NOT_SUPPORTED = -EPFNOSUPPORT,
277 TIZEN_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED = -EAFNOSUPPORT,
278 TIZEN_ERROR_ADDRES_IN_USE = -EADDRINUSE,
279 TIZEN_ERROR_CANNOT_ASSIGN_ADDRESS = -EADDRNOTAVAIL,
280 TIZEN_ERROR_NETWORK_DOWN = -ENETDOWN,
281 TIZEN_ERROR_NETWORK_UNREACHABLE = -ENETUNREACH,
282 TIZEN_ERROR_NETWORK_RESET = -ENETRESET,
283 TIZEN_ERROR_CONNECTION_ABORTED = -ECONNABORTED,
284 TIZEN_ERROR_CONNECTION_RESET_BY_PEER = -ECONNRESET,
285 TIZEN_ERROR_BUFFER_SPACE = -ENOBUFS,
286 TIZEN_ERROR_ENDPOINT_CONNECTED = -EISCONN,
287 TIZEN_ERROR_ENDPOINT_NOT_CONNECTED = -ENOTCONN,
288 TIZEN_ERROR_ENDPOINT_SHUTDOWN = -ESHUTDOWN,
289 TIZEN_ERROR_TOO_MANY_REFERENCES = -ETOOMANYREFS,
290 TIZEN_ERROR_CONNECTION_TIME_OUT = -ETIMEDOUT,
291 TIZEN_ERROR_CONNECTION_REFUSED = -ECONNREFUSED,
292 TIZEN_ERROR_HOST_DOWN = -EHOSTDOWN,
293 TIZEN_ERROR_NO_ROUTE_TO_HOST = -EHOSTUNREACH,
294 TIZEN_ERROR_ALREADY_IN_PROGRESS = -EALREADY,
295 TIZEN_ERROR_NOW_IN_PROGRESS = -EINPROGRESS,
296 TIZEN_ERROR_STALE_NFS_FILE_HANDLE = -ESTALE,
297 TIZEN_ERROR_STRUCTURE_UNCLEAN = -EUCLEAN,
298 TIZEN_ERROR_NOT_XENIX_NAMED_TYPE_FILE = -ENOTNAM,
299 TIZEN_ERROR_NO_XENIX_SEMAPHORES_AVAILABLE = -ENAVAIL,
300 TIZEN_ERROR_IS_NAMED_TYPE_FILE = -EISNAM,
301 TIZEN_ERROR_REMOTE_IO = -EREMOTEIO,
302 TIZEN_ERROR_QUOTA_EXCEEDED = -EDQUOT,
303 TIZEN_ERROR_NO_MEDIUM = -ENOMEDIUM,
304 TIZEN_ERROR_WRONG_MEDIUM_TYPE = -EMEDIUMTYPE,
305 TIZEN_ERROR_CANCELED = -ECANCELED,
306 TIZEN_ERROR_KEY_NOT_AVAILABLE = -ENOKEY,
307 TIZEN_ERROR_KEY_EXPIRED = -EKEYEXPIRED,
308 TIZEN_ERROR_KEY_REVOKED = -EKEYREVOKED,
309 TIZEN_ERROR_KEY_REJECTED = -EKEYREJECTED,
311 TIZEN_ERROR_OWNER_DEAD = -EOWNERDEAD,
313 TIZEN_ERROR_UNKNOWN = TIZEN_ERROR_MIN_PLATFORM_ERROR,
318 TIZEN_ERROR_TIMED_OUT,
319 TIZEN_ERROR_NOT_SUPPORTED,
320 TIZEN_ERROR_USER_NOT_CONSENTED,
321 TIZEN_ERROR_END_OF_COLLECTION
336 int get_last_result(
void);
347 void set_last_result(
int err);
359 char *get_error_message(
int err);
365 #endif //LIBMDM_DOC_TIZEN_ERROR_H