-rw-r--r-- | gammu/emb/common/gsmcomon.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gammu/emb/common/gsmcomon.h b/gammu/emb/common/gsmcomon.h index cd36708..e067955 100644 --- a/gammu/emb/common/gsmcomon.h +++ b/gammu/emb/common/gsmcomon.h @@ -37,56 +37,57 @@ typedef enum { ERR_DEVICEREADERROR, /* Error during reading device */ ERR_DEVICEPARITYERROR, /* Can't set parity on device */ ERR_TIMEOUT, /* Command timed out */ ERR_FRAMENOTREQUESTED, /* Frame handled, but not requested in this moment */ ERR_UNKNOWNRESPONSE, /* Response not handled by gammu */ ERR_UNKNOWNFRAME, /* Frame not handled by gammu */ ERR_UNKNOWNCONNECTIONTYPESTRING,/* Unknown connection type given by user */ ERR_UNKNOWNMODELSTRING, /* Unknown model given by user */ /*20*/ ERR_SOURCENOTAVAILABLE, /* Some functions not compiled in your OS */ ERR_NOTSUPPORTED, /* Not supported by phone */ ERR_EMPTY, /* Empty phonebook entry, ... */ ERR_SECURITYERROR, /* Not allowed */ ERR_INVALIDLOCATION, /* Too high or too low location... */ ERR_NOTIMPLEMENTED, /* Function not implemented */ ERR_FULL, /* Memory is full */ ERR_UNKNOWN, ERR_CANTOPENFILE, /* Error during opening file */ ERR_MOREMEMORY, /* More memory required */ /*30*/ ERR_PERMISSION, /* No permission */ ERR_EMPTYSMSC, /* SMSC number is empty */ ERR_INSIDEPHONEMENU, /* Inside phone menu - can't make something */ ERR_NOTCONNECTED, /* Phone NOT connected - can't make something */ ERR_WORKINPROGRESS, /* Work in progress */ ERR_PHONEOFF, /* Phone is disabled and connected to charger */ ERR_FILENOTSUPPORTED, /* File format not supported by Gammu */ ERR_BUG, /* Found bug in implementation or phone */ ERR_CANCELED, /* Action was canceled by user */ ERR_NEEDANOTHERANSWER, /* Inside Gammu: phone module need to send another answer frame */ /*40*/ ERR_OTHERCONNECTIONREQUIRED, ERR_WRONGCRC, ERR_INVALIDDATETIME, /* Invalid date/time */ ERR_MEMORY, /* Phone memory error, maybe it is read only */ - ERR_INVALIDDATA /* Invalid data */ + ERR_INVALIDDATA, /* Invalid data */ + ERR_FILEALREADYEXIST /* File with specified name already exist */ } GSM_Error; extern GSM_Error NoneFunction (void); extern GSM_Error NotImplementedFunction (void); extern GSM_Error NotSupportedFunction (void); #define NONEFUNCTION (void *) NoneFunction #define NOTIMPLEMENTED (void *) NotImplementedFunction #define NOTSUPPORTED (void *) NotSupportedFunction unsigned char *GetMsg (INI_Section *cfg, unsigned char *default_string); unsigned char *print_error (GSM_Error e, FILE *df, INI_Section *cfg); GSM_Error GSM_SetDebugFile(char *info, Debug_Info *privdi); const char *GetGammuLocalePath(void); const char *GetGammuVersion(void); #endif /* How should editor hadle tabs in this file? Add editor commands here. * vim: noexpandtab sw=8 ts=8 sts=8: */ |