/usr/include/gammu/gammu-error.h is in libgammu-dev 1.38.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 | /**
* \file gammu-error.h
* \author Michal Čihař
*
* Error codes definitions.
*/
#ifndef __gammu_error_h
#define __gammu_error_h
/**
* \defgroup Error Error handling
* Error handling and manipulation.
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Error types.
* \ingroup Error
*/
typedef enum {
/**
* No error
*/
ERR_NONE = 1,
/**
* Error during opening device
*/
ERR_DEVICEOPENERROR,
/**
* Device locked
*/
ERR_DEVICELOCKED,
/**
* Device does not exits
*/
ERR_DEVICENOTEXIST,
/**
* Device is busy
*/
ERR_DEVICEBUSY,
/**
* No permissions to open device
*/
ERR_DEVICENOPERMISSION,
/**
* No driver installed for a device
*/
ERR_DEVICENODRIVER,
/**
* Device doesn't seem to be working
*/
ERR_DEVICENOTWORK,
/**
* Error during setting DTR/RTS in device
*/
ERR_DEVICEDTRRTSERROR,
/** 10 **/
/**
* Error during changing speed in device
*/
ERR_DEVICECHANGESPEEDERROR,
/**
* Error during writing device
*/
ERR_DEVICEWRITEERROR,
/**
* Error during reading device
*/
ERR_DEVICEREADERROR,
/**
* Can't set parity on device
*/
ERR_DEVICEPARITYERROR,
/**
* Command timed out
*/
ERR_TIMEOUT,
/**
* Frame handled, but not requested in this moment
*/
ERR_FRAMENOTREQUESTED,
/**
* Response not handled by gammu
*/
ERR_UNKNOWNRESPONSE,
/**
* Frame not handled by gammu
*/
ERR_UNKNOWNFRAME,
/**
* Unknown connection type given by user
*/
ERR_UNKNOWNCONNECTIONTYPESTRING,
/**
* Unknown model given by user
*/
ERR_UNKNOWNMODELSTRING,
/** 20 **/
/**
* Some functions not compiled in your OS
*/
ERR_SOURCENOTAVAILABLE,
/**
* Not supported by phone
*/
ERR_NOTSUPPORTED,
/**
* Empty entry or transfer end.
*/
ERR_EMPTY,
/**
* Not allowed
*/
ERR_SECURITYERROR,
/**
* Too high or too low location...
*/
ERR_INVALIDLOCATION,
/**
* Function not implemented
*/
ERR_NOTIMPLEMENTED,
/**
* Memory is full
*/
ERR_FULL,
/**
* Unknown response from phone
*/
ERR_UNKNOWN,
/**
* Error during opening file
*/
ERR_CANTOPENFILE,
/**
* More memory required
*/
ERR_MOREMEMORY,
/** 30 **/
/**
* No permission
*/
ERR_PERMISSION,
/**
* SMSC number is empty
*/
ERR_EMPTYSMSC,
/**
* Inside phone menu - can't make something
*/
ERR_INSIDEPHONEMENU,
/**
* Phone NOT connected - can't make something
*/
ERR_NOTCONNECTED,
/**
* Work in progress
*/
ERR_WORKINPROGRESS,
/**
* Phone is disabled and connected to charger
*/
ERR_PHONEOFF,
/**
* File format not supported by Gammu
*/
ERR_FILENOTSUPPORTED,
/**
* Found bug in implementation or phone
*/
ERR_BUG,
/**
* Action was canceled by user
*/
ERR_CANCELED,
/**
* Inside Gammu: phone module need to send another answer frame
*/
ERR_NEEDANOTHERANSWER,
/** 40 **/
/**
* You need other connectin for this operation.
*/
ERR_OTHERCONNECTIONREQUIRED,
/**
* Wrong CRC
*/
ERR_WRONGCRC,
/**
* Invalid date/time
*/
ERR_INVALIDDATETIME,
/**
* Phone memory error, maybe it is read only
*/
ERR_MEMORY,
/**
* Invalid data given to phone
*/
ERR_INVALIDDATA,
/**
* File with specified name already exist
*/
ERR_FILEALREADYEXIST,
/**
* File with specified name doesn't exist
*/
ERR_FILENOTEXIST,
/**
* You have to give folder (not file) name
*/
ERR_SHOULDBEFOLDER,
/**
* You have to give file (not folder) name
*/
ERR_SHOULDBEFILE,
/**
* Can not access SIM card
*/
ERR_NOSIM,
/** 50 **/
/**
* Invalid gnapplet version
*/
ERR_GNAPPLETWRONG,
/**
* Only part of folders listed
*/
ERR_FOLDERPART,
/**
* Folder is not empty
*/
ERR_FOLDERNOTEMPTY,
/**
* Data were converted
*/
ERR_DATACONVERTED,
/**
* Gammu is not configured.
*/
ERR_UNCONFIGURED,
/**
* Wrong folder selected (eg. for SMS).
*/
ERR_WRONGFOLDER,
/**
* Internal phone error (phone got crazy).
*/
ERR_PHONE_INTERNAL,
/**
* Could not write to a file (on local filesystem).
*/
ERR_WRITING_FILE,
/**
* No such section exists.
*/
ERR_NONE_SECTION,
/**
* Using default values.
*/
ERR_USING_DEFAULTS,
/** 60 **/
/**
* Corrupted data returned by phone.
*/
ERR_CORRUPTED,
/**
* Bad feature string.
*/
ERR_BADFEATURE,
/**
* Some functions not compiled in your OS
*/
ERR_DISABLED,
/**
* Bluetooth configuration requires channel option.
*/
ERR_SPECIFYCHANNEL,
/**
* Service is not running.
*/
ERR_NOTRUNNING,
/**
* Service setup is missing.
*/
ERR_NOSERVICE,
/**
* Command failed. Try again.
*/
ERR_BUSY,
/**
* Can not connect to server.
*/
ERR_COULDNT_CONNECT,
/**
* Can not resolve host name.
*/
ERR_COULDNT_RESOLVE,
/**
* Failed to get SMSC number from phone.
*/
ERR_GETTING_SMSC,
/** 70 **/
/**
* Operation aborted.
*/
ERR_ABORTED,
/**
* Installation data not found.
*/
ERR_INSTALL_NOT_FOUND,
/**
* Entry is read only.
*/
ERR_READ_ONLY,
/**
* Network error.
*/
ERR_NETWORK_ERROR,
/**
* Invalid database version.
*/
ERR_DB_VERSION,
/**
* Failed to initialize DB driver.
*/
ERR_DB_DRIVER,
/**
* Failed to configure DB driver.
*/
ERR_DB_CONFIG,
/**
* Failed to connect to database.
*/
ERR_DB_CONNECT,
/**
* Database connection timeout.
*/
ERR_DB_TIMEOUT,
/**
* Error in executing SQL query.
*/
ERR_SQL,
/**
* Just marker of highest error code, should not be used.
*/
ERR_LAST_VALUE
} GSM_Error;
/**
* Returns text for error.
*
* \param e Error code.
* \return Text (in current locales) describing error
*
* \ingroup Error
*/
const char *GSM_ErrorString(GSM_Error e);
/**
* Returns name for error.
*
* \param e Error code.
* \return Text with error name
*
* \ingroup Error
*/
const char *GSM_ErrorName(GSM_Error e);
#ifdef __cplusplus
}
#endif
#endif
/* Editor configuration
* vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
*/
|