summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/gsmcomon.h
Unidiff
Diffstat (limited to 'gammu/emb/common/gsmcomon.h') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/common/gsmcomon.h3
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
@@ -45,48 +45,49 @@ typedef enum {
45 /*20*/ ERR_SOURCENOTAVAILABLE, /* Some functions not compiled in your OS */ 45 /*20*/ ERR_SOURCENOTAVAILABLE, /* Some functions not compiled in your OS */
46 ERR_NOTSUPPORTED, /* Not supported by phone */ 46 ERR_NOTSUPPORTED, /* Not supported by phone */
47 ERR_EMPTY, /* Empty phonebook entry, ... */ 47 ERR_EMPTY, /* Empty phonebook entry, ... */
48 ERR_SECURITYERROR, /* Not allowed */ 48 ERR_SECURITYERROR, /* Not allowed */
49 ERR_INVALIDLOCATION, /* Too high or too low location... */ 49 ERR_INVALIDLOCATION, /* Too high or too low location... */
50 ERR_NOTIMPLEMENTED, /* Function not implemented */ 50 ERR_NOTIMPLEMENTED, /* Function not implemented */
51 ERR_FULL, /* Memory is full */ 51 ERR_FULL, /* Memory is full */
52 ERR_UNKNOWN, 52 ERR_UNKNOWN,
53 ERR_CANTOPENFILE, /* Error during opening file */ 53 ERR_CANTOPENFILE, /* Error during opening file */
54 ERR_MOREMEMORY, /* More memory required */ 54 ERR_MOREMEMORY, /* More memory required */
55 /*30*/ ERR_PERMISSION, /* No permission */ 55 /*30*/ ERR_PERMISSION, /* No permission */
56 ERR_EMPTYSMSC, /* SMSC number is empty */ 56 ERR_EMPTYSMSC, /* SMSC number is empty */
57 ERR_INSIDEPHONEMENU, /* Inside phone menu - can't make something */ 57 ERR_INSIDEPHONEMENU, /* Inside phone menu - can't make something */
58 ERR_NOTCONNECTED, /* Phone NOT connected - can't make something */ 58 ERR_NOTCONNECTED, /* Phone NOT connected - can't make something */
59 ERR_WORKINPROGRESS, /* Work in progress */ 59 ERR_WORKINPROGRESS, /* Work in progress */
60 ERR_PHONEOFF, /* Phone is disabled and connected to charger */ 60 ERR_PHONEOFF, /* Phone is disabled and connected to charger */
61 ERR_FILENOTSUPPORTED, /* File format not supported by Gammu */ 61 ERR_FILENOTSUPPORTED, /* File format not supported by Gammu */
62 ERR_BUG, /* Found bug in implementation or phone */ 62 ERR_BUG, /* Found bug in implementation or phone */
63 ERR_CANCELED, /* Action was canceled by user */ 63 ERR_CANCELED, /* Action was canceled by user */
64 ERR_NEEDANOTHERANSWER, /* Inside Gammu: phone module need to send another answer frame */ 64 ERR_NEEDANOTHERANSWER, /* Inside Gammu: phone module need to send another answer frame */
65 /*40*/ERR_OTHERCONNECTIONREQUIRED, 65 /*40*/ERR_OTHERCONNECTIONREQUIRED,
66 ERR_WRONGCRC, 66 ERR_WRONGCRC,
67 ERR_INVALIDDATETIME, /* Invalid date/time */ 67 ERR_INVALIDDATETIME, /* Invalid date/time */
68 ERR_MEMORY, /* Phone memory error, maybe it is read only */ 68 ERR_MEMORY, /* Phone memory error, maybe it is read only */
69 ERR_INVALIDDATA /* Invalid data */ 69 ERR_INVALIDDATA, /* Invalid data */
70 ERR_FILEALREADYEXIST /* File with specified name already exist */
70} GSM_Error; 71} GSM_Error;
71 72
72 extern GSM_Error NoneFunction (void); 73 extern GSM_Error NoneFunction (void);
73 extern GSM_Error NotImplementedFunction(void); 74 extern GSM_Error NotImplementedFunction(void);
74 extern GSM_Error NotSupportedFunction(void); 75 extern GSM_Error NotSupportedFunction(void);
75 76
76 #define NONEFUNCTION (void *) NoneFunction 77 #define NONEFUNCTION (void *) NoneFunction
77 #define NOTIMPLEMENTED (void *) NotImplementedFunction 78 #define NOTIMPLEMENTED (void *) NotImplementedFunction
78 #define NOTSUPPORTED (void *) NotSupportedFunction 79 #define NOTSUPPORTED (void *) NotSupportedFunction
79 80
80 unsigned char *GetMsg (INI_Section *cfg, unsigned char *default_string); 81 unsigned char *GetMsg (INI_Section *cfg, unsigned char *default_string);
81 unsigned char *print_error(GSM_Error e, FILE *df, INI_Section *cfg); 82 unsigned char *print_error(GSM_Error e, FILE *df, INI_Section *cfg);
82 83
83GSM_Error GSM_SetDebugFile(char *info, Debug_Info *privdi); 84GSM_Error GSM_SetDebugFile(char *info, Debug_Info *privdi);
84 85
85const char *GetGammuLocalePath(void); 86const char *GetGammuLocalePath(void);
86const char *GetGammuVersion(void); 87const char *GetGammuVersion(void);
87 88
88#endif 89#endif
89 90
90/* How should editor hadle tabs in this file? Add editor commands here. 91/* How should editor hadle tabs in this file? Add editor commands here.
91 * vim: noexpandtab sw=8 ts=8 sts=8: 92 * vim: noexpandtab sw=8 ts=8 sts=8:
92 */ 93 */