-rw-r--r-- | gammu/emb/gammu/gammu.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/gammu/emb/gammu/gammu.h b/gammu/emb/gammu/gammu.h new file mode 100644 index 0000000..d3de31b --- a/dev/null +++ b/gammu/emb/gammu/gammu.h @@ -0,0 +1,74 @@ +/* (c) 2002-2003 by Marcin Wiacek and Michal Cihar */ + +#include "../common/config.h" +#include "../common/misc/misc.h" +#include "../common/gsmstate.h" + +typedef enum { + H_Call=1, + H_SMS, + H_Memory, + H_Filesystem, + H_Logo, + H_Ringtone, + H_Calendar, + H_ToDo, + H_Note, + H_DateTime, + H_Category, + H_Tests, +#ifdef GSM_ENABLE_BACKUP + H_Backup, +#endif +#if defined(GSM_ENABLE_NOKIA_DCT3) || defined(GSM_ENABLE_NOKIA_DCT4) + H_Nokia, +#endif +#ifdef GSM_ENABLE_AT + H_Siemens, +#endif + H_Network, + H_WAP, + H_MMS, + H_FM, + H_Info, + H_Settings, +#ifdef DEBUG + H_Decode, +#endif + H_Other +} HelpCategory; + +typedef struct { + HelpCategory category; + char *option; + char *description; +} HelpCategoryDescriptions; + +typedef struct { + char *parameter; + int min_arg; + int max_arg; + void (*Function) (int argc, char *argv[]); + HelpCategory help_cat[10]; + char *help; +} GSM_Parameters; + +void Print_Error (GSM_Error error); +void GSM_Init (bool checkerror); +void GSM_Terminate (void); + +static GSM_StateMachine s; +static GSM_Phone_Functions *Phone; +static GSM_Error error; + +static bool gshutdown; + +void interrupt(int sign); + +#ifdef GSM_ENABLE_BEEP +void GSM_PhoneBeep (void); +#endif + +/* How should editor hadle tabs in this file? Add editor commands here. + * vim: noexpandtab sw=8 ts=8 sts=8: + */ |