8 #ifdef __FUNCTION__WORKING 9 #define PRINT_FUNCTION_START smprintf(s, "Entering %s\n", __FUNCTION__); 10 #define PRINT_FUNCTION_END smprintf(s, "Leaving %s\n", __FUNCTION__); 12 #define PRINT_FUNCTION_START smprintf(s, "Entering %s:%d\n", __FILE__, __LINE__); 13 #define PRINT_FUNCTION_END smprintf(s, "Leaving %s:%d\n", __FILE__, __LINE__); 15 #define PRINT_MEMORY_INFO() smprintf(s, "Location = %d, Memory type = %s\n", entry->Location, GSM_MemoryTypeToString(entry->MemoryType)); 16 #define PRINT_TODO_INFO() smprintf(s, "Location = %d\n", ToDo->Location); 17 #define PRINT_CALENDAR_INFO() smprintf(s, "Location = %d\n", Note->Location); 18 #define PRINT_NOTE_INFO() smprintf(s, "Location = %d\n", Note->Location); 19 #define PRINT_MSMS_INFO() smprintf(s, "Number = %d, Location = %d, Folder = %d\n", sms->Number, sms->SMS[0].Location, sms->SMS[0].Folder); 20 #define PRINT_SMS_INFO() smprintf(s, "Location = %d, Folder = %d\n", sms->Location, sms->Folder); 21 #define PRINT_START() if (start) smprintf(s, "Starting reading!\n"); 28 #define PRINT_LOG_ERROR(err) \ 30 GSM_LogError(s, __FUNCTION__, err); \ 38 #define CHECK_PHONE_CONNECTION() \ 40 PRINT_FUNCTION_START \ 41 if (!GSM_IsConnected(s)) { \ 42 return ERR_NOTCONNECTED; \ 44 if (s->Phone.Functions->PreAPICall != NONEFUNCTION) { \ 45 err = s->Phone.Functions->PreAPICall(s); \ 46 if (err != ERR_NONE) { \ 56 #define RUN_RESTARTABLE(return_value, function_call) \ 59 for (restarts = 0; restarts < 10; ++restarts) { \ 60 unsigned useconds = 10000 << restarts; \ 61 return_value = (function_call); \ 62 if (return_value != ERR_BUSY) \ 64 smprintf(s, "Sleeping %d ms before retrying the last command\n", useconds / 1000); \ 758 smprintf(s,
"Location = %d, Folder = %d\n", Location, Folder);
GSM_Error GSM_GetSecurityStatus(GSM_StateMachine *s, GSM_SecurityCodeType *Status)
GSM_Error(* CancelAllDiverts)(GSM_StateMachine *s)
GSM_Error GSM_DeleteAllNotes(GSM_StateMachine *s)
GSM_Error GSM_SetIncomingUSSD(GSM_StateMachine *s, gboolean enable)
GSM_Error(* GetNextFileFolder)(GSM_StateMachine *s, GSM_File *File, gboolean start)
GSM_Error(* SetPower)(GSM_StateMachine *s, gboolean on)
GSM_Error GSM_SetWAPSettings(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error GSM_SendSavedSMS(GSM_StateMachine *s, int Folder, int Location)
GSM_Error GSM_DialVoice(GSM_StateMachine *s, char *Number, GSM_CallShowNumber ShowNumber)
GSM_Error(* GetAlarm)(GSM_StateMachine *s, GSM_Alarm *Alarm)
#define PRINT_CALENDAR_INFO()
GSM_Error GSM_DialService(GSM_StateMachine *s, char *Number)
GSM_Error(* GetGPRSAccessPoint)(GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
GSM_Error GSM_SetSMSC(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_Error(* AddCategory)(GSM_StateMachine *s, GSM_Category *Category)
GSM_Error GSM_SendDTMF(GSM_StateMachine *s, char *sequence)
GSM_Error GSM_GetSMSC(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_Error(* SendSMS)(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error(* DeleteSMSFolder)(GSM_StateMachine *s, int ID)
GSM_Error GSM_SetMemory(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error(* GetCalendarSettings)(GSM_StateMachine *s, GSM_CalendarSettings *settings)
GSM_Error(* GetNextRootFolder)(GSM_StateMachine *s, GSM_File *File)
GSM_Error(* SetAlarm)(GSM_StateMachine *s, GSM_Alarm *Alarm)
GSM_Error GSM_PressKey(GSM_StateMachine *s, GSM_KeyCode Key, gboolean Press)
GSM_Error(* SetMMSSettings)(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error GSM_DeleteNote(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error(* GetFileSystemStatus)(GSM_StateMachine *s, GSM_FileSystemStatus *Status)
GSM_Error GSM_GetSyncMLSettings(GSM_StateMachine *s, GSM_SyncMLSettings *settings)
GSM_Error(* GetCategory)(GSM_StateMachine *s, GSM_Category *Category)
GSM_Error GSM_DeleteMemory(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error(* DeleteToDo)(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error GSM_ClearFMStations(GSM_StateMachine *s)
GSM_Error(* PressKey)(GSM_StateMachine *s, GSM_KeyCode Key, gboolean Press)
GSM_Error(* SetIncomingSMS)(GSM_StateMachine *s, gboolean enable)
GSM_Error(* SetSMSC)(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_Error GSM_SetProfile(GSM_StateMachine *s, GSM_Profile *Profile)
GSM_Error GSM_GetCalendarStatus(GSM_StateMachine *s, GSM_CalendarStatus *Status)
GSM_Error(* SetSpeedDial)(GSM_StateMachine *s, GSM_SpeedDial *Speed)
GSM_Error(* GetNextToDo)(GSM_StateMachine *s, GSM_ToDoEntry *ToDo, gboolean start)
GSM_Error(* GetToDoStatus)(GSM_StateMachine *s, GSM_ToDoStatus *status)
GSM_Error GSM_SendFilePart(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
GSM_Error(* GetHardware)(GSM_StateMachine *s, char *value)
GSM_Error(* DeleteAllCalendar)(GSM_StateMachine *s)
GSM_Error(* GetManufactureMonth)(GSM_StateMachine *s, char *value)
#define PRINT_TODO_INFO()
GSM_Error(* GetOriginalIMEI)(GSM_StateMachine *s, char *value)
GSM_Error GSM_SetGPRSAccessPoint(GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
GSM_Error(* TransferCall)(GSM_StateMachine *s, int ID, gboolean next)
GSM_Error(* SetFileAttributes)(GSM_StateMachine *s, GSM_File *File)
GSM_Error GSM_SetCalendarSettings(GSM_StateMachine *s, GSM_CalendarSettings *settings)
GSM_Error(* SetFMStation)(GSM_StateMachine *s, GSM_FMStation *FMStation)
unsigned char NetworkName[15 *2]
GSM_Error GSM_GetNextCalendar(GSM_StateMachine *s, GSM_CalendarEntry *Note, gboolean start)
GSM_Error GSM_SetIncomingSMS(GSM_StateMachine *s, gboolean enable)
GSM_Error(* SplitCall)(GSM_StateMachine *s, int ID)
GSM_Error GSM_GetBatteryCharge(GSM_StateMachine *s, GSM_BatteryCharge *bat)
GSM_Error GSM_TransferCall(GSM_StateMachine *s, int ID, gboolean next)
char VerDate[GSM_MAX_VERSION_DATE_LENGTH+1]
GSM_Error(* Reset)(GSM_StateMachine *s, gboolean hard)
GSM_Error(* EnterSecurityCode)(GSM_StateMachine *s, GSM_SecurityCode *Code)
GSM_Error GSM_DeleteFile(GSM_StateMachine *s, unsigned char *ID)
GSM_Error GSM_DeleteUserRingtones(GSM_StateMachine *s)
GSM_Error GSM_GetPPM(GSM_StateMachine *s, char *value)
GSM_Error(* AddMemory)(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error GSM_GetMMSSettings(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error GSM_Reset(GSM_StateMachine *s, gboolean hard)
GSM_Error(* DeleteMemory)(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error GSM_AnswerCall(GSM_StateMachine *s, int ID, gboolean all)
GSM_Error(* GetSyncMLSettings)(GSM_StateMachine *s, GSM_SyncMLSettings *settings)
GSM_Error(* SetAutoNetworkLogin)(GSM_StateMachine *s)
GSM_Error GSM_GetNextMemory(GSM_StateMachine *s, GSM_MemoryEntry *entry, gboolean start)
GSM_Error GSM_SetPower(GSM_StateMachine *s, gboolean on)
GSM_Error(* SetDateTime)(GSM_StateMachine *s, GSM_DateTime *date_time)
GSM_Error GSM_SetFMStation(GSM_StateMachine *s, GSM_FMStation *FMStation)
GSM_Error GSM_GetNextMMSFileInfo(GSM_StateMachine *s, unsigned char *FileID, int *MMSFolder, gboolean start)
GSM_Error GSM_SetChatSettings(GSM_StateMachine *s, GSM_ChatSettings *settings)
GSM_Error GSM_GetCategory(GSM_StateMachine *s, GSM_Category *Category)
GSM_Error GSM_DeleteSMSFolder(GSM_StateMachine *s, int ID)
GSM_Error(* GetWAPSettings)(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error GSM_GetGPRSAccessPoint(GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
GSM_BinaryPicture_Types Type
GSM_Error(* GetSMSC)(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_Error(* GetWAPBookmark)(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
GSM_Error GSM_GetNote(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error(* SetGPRSAccessPoint)(GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
GSM_Error(* GetSignalQuality)(GSM_StateMachine *s, GSM_SignalQuality *sig)
GSM_Error(* GetFMStation)(GSM_StateMachine *s, GSM_FMStation *FMStation)
GSM_Error GSM_GetIMEI(GSM_StateMachine *s, char *value)
GSM_Error GSM_CancelAllDiverts(GSM_StateMachine *s)
GSM_Error(* GetSMSStatus)(GSM_StateMachine *s, GSM_SMSMemoryStatus *status)
GSM_Error(* GetNextSMS)(GSM_StateMachine *s, GSM_MultiSMSMessage *sms, gboolean start)
GSM_Error(* SetSMS)(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error(* AddFilePart)(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
GSM_Error(* DeleteFolder)(GSM_StateMachine *s, unsigned char *ID)
GSM_Error GSM_DeleteToDo(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error(* GetNextMemory)(GSM_StateMachine *s, GSM_MemoryEntry *entry, gboolean start)
GSM_Error GSM_DeleteCalendar(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_Error GSM_GetToDo(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error GSM_SetIncomingCB(GSM_StateMachine *s, gboolean enable)
GSM_Error(* SetLocale)(GSM_StateMachine *s, GSM_Locale *locale)
char IMEI[GSM_MAX_IMEI_LENGTH+1]
char Version[GSM_MAX_VERSION_LENGTH+1]
GSM_Error(* AddNote)(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error(* DeleteAllToDo)(GSM_StateMachine *s)
GSM_Error GSM_GetCalendar(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_Error GSM_ConferenceCall(GSM_StateMachine *s, int ID)
GSM_Error(* GetRingtonesInfo)(GSM_StateMachine *s, GSM_AllRingtonesInfo *Info)
#define PRINT_MSMS_INFO()
GSM_Error GSM_SetAlarm(GSM_StateMachine *s, GSM_Alarm *Alarm)
GSM_Error GSM_AddFilePart(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
char Manufacturer[GSM_MAX_MANUFACTURER_LENGTH+1]
GSM_Error(* SendFilePart)(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
GSM_Error GSM_CancelCall(GSM_StateMachine *s, int ID, gboolean all)
GSM_Error GSM_GetNextSMS(GSM_StateMachine *s, GSM_MultiSMSMessage *sms, gboolean start)
GSM_Error GSM_DeleteAllToDo(GSM_StateMachine *s)
GSM_Error(* AddFolder)(GSM_StateMachine *s, GSM_File *File)
GSM_Error(* SetSyncMLSettings)(GSM_StateMachine *s, GSM_SyncMLSettings *settings)
GSM_Error(* AddSMS)(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error(* GetSpeedDial)(GSM_StateMachine *s, GSM_SpeedDial *Speed)
GSM_Error(* GetModel)(GSM_StateMachine *s)
GSM_Error(* DialService)(GSM_StateMachine *s, char *Number)
GSM_Error(* GetChatSettings)(GSM_StateMachine *s, GSM_ChatSettings *settings)
GSM_Error GSM_GetNextNote(GSM_StateMachine *s, GSM_NoteEntry *Note, gboolean start)
GSM_Error(* GetManufacturer)(GSM_StateMachine *s)
GSM_Error(* DeleteAllNotes)(GSM_StateMachine *s)
GSM_Error(* DeleteFile)(GSM_StateMachine *s, unsigned char *ID)
GSM_Error(* DeleteCalendar)(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_Error GSM_GetSMSFolders(GSM_StateMachine *s, GSM_SMSFolders *folders)
GSM_Error GSM_GetSIMIMSI(GSM_StateMachine *s, char *IMSI)
GSM_Error(* GetNetworkInfo)(GSM_StateMachine *s, GSM_NetworkInfo *netinfo)
GSM_Error GSM_AddSMSFolder(GSM_StateMachine *s, unsigned char *name)
GSM_Error(* DeleteAllMemory)(GSM_StateMachine *s, GSM_MemoryType MemoryType)
GSM_Error(* GetFirmware)(GSM_StateMachine *s)
GSM_Error GSM_GetCategoryStatus(GSM_StateMachine *s, GSM_CategoryStatus *Status)
GSM_Error GSM_SendSMS(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error(* GetCategoryStatus)(GSM_StateMachine *s, GSM_CategoryStatus *Status)
GSM_Error GSM_GetFolderListing(GSM_StateMachine *s, GSM_File *File, gboolean start)
GSM_Error GSM_GetModel(GSM_StateMachine *s, char *value)
GSM_Error GSM_GetChatSettings(GSM_StateMachine *s, GSM_ChatSettings *settings)
GSM_Error GSM_GetLocale(GSM_StateMachine *s, GSM_Locale *locale)
GSM_Error GSM_GetSpeedDial(GSM_StateMachine *s, GSM_SpeedDial *Speed)
GSM_Error GSM_SetSpeedDial(GSM_StateMachine *s, GSM_SpeedDial *Speed)
#define PRINT_MEMORY_INFO()
GSM_Error GSM_GetToDoStatus(GSM_StateMachine *s, GSM_ToDoStatus *status)
GSM_Error(* SetCalendarSettings)(GSM_StateMachine *s, GSM_CalendarSettings *settings)
#define PRINT_LOG_ERROR(err)
GSM_Error GSM_ResetPhoneSettings(GSM_StateMachine *s, GSM_ResetSettingsType Type)
GSM_Error GSM_SetLocale(GSM_StateMachine *s, GSM_Locale *locale)
GSM_Error GSM_SetCallDivert(GSM_StateMachine *s, GSM_CallDivert *divert)
GSM_Error GSM_GetNextRootFolder(GSM_StateMachine *s, GSM_File *File)
#define CHECK_PHONE_CONNECTION()
GSM_Error(* SetCallDivert)(GSM_StateMachine *s, GSM_CallDivert *divert)
GSM_Error GSM_GetNotesStatus(GSM_StateMachine *s, GSM_ToDoStatus *status)
GSM_Error(* SetMemory)(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error(* GetSecurityStatus)(GSM_StateMachine *s, GSM_SecurityCodeType *Status)
GSM_Error GSM_GetProfile(GSM_StateMachine *s, GSM_Profile *Profile)
GSM_Error GSM_DeleteSMS(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error(* SetIncomingUSSD)(GSM_StateMachine *s, gboolean enable)
GSM_Error(* SendSavedSMS)(GSM_StateMachine *s, int Folder, int Location)
GSM_Error GSM_SetSMS(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error GSM_GetNetworkInfo(GSM_StateMachine *s, GSM_NetworkInfo *netinfo)
GSM_Error GSM_GetMMSFolders(GSM_StateMachine *s, GSM_MMSFolders *folders)
GSM_Error GSM_DeleteWAPBookmark(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
GSM_Error GSM_GetWAPBookmark(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
GSM_Error(* SetWAPBookmark)(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
GSM_Error(* DeleteSMS)(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error GSM_SetIncomingCall(GSM_StateMachine *s, gboolean enable)
GSM_Error(* GetCalendarStatus)(GSM_StateMachine *s, GSM_CalendarStatus *Status)
GSM_Error GSM_GetMemoryStatus(GSM_StateMachine *s, GSM_MemoryStatus *status)
GSM_Error(* HoldCall)(GSM_StateMachine *s, int ID)
GSM_Error GSM_GetFileSystemStatus(GSM_StateMachine *s, GSM_FileSystemStatus *Status)
GSM_Error GSM_DeleteAllCalendar(GSM_StateMachine *s)
GSM_Error(* GetDisplayStatus)(GSM_StateMachine *s, GSM_DisplayFeatures *features)
GSM_Error GSM_GetDisplayStatus(GSM_StateMachine *s, GSM_DisplayFeatures *features)
GSM_Error GSM_GetBitmap(GSM_StateMachine *s, GSM_Bitmap *Bitmap)
GSM_Error(* GetSMSFolders)(GSM_StateMachine *s, GSM_SMSFolders *folders)
GSM_Error GSM_SetMMSSettings(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error GSM_GetAlarm(GSM_StateMachine *s, GSM_Alarm *Alarm)
GSM_Error GSM_HoldCall(GSM_StateMachine *s, int ID)
GSM_Error(* GetMemory)(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error GSM_GetSMS(GSM_StateMachine *s, GSM_MultiSMSMessage *sms)
GSM_Error(* GetToDo)(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error GSM_AddMemory(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error GSM_SetBitmap(GSM_StateMachine *s, GSM_Bitmap *Bitmap)
GSM_Error(* AddToDo)(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error(* GetRingtone)(GSM_StateMachine *s, GSM_Ringtone *Ringtone, gboolean PhoneRingtone)
GSM_Error(* GetNote)(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error GSM_GetFMStation(GSM_StateMachine *s, GSM_FMStation *FMStation)
GSM_Error(* GetNextNote)(GSM_StateMachine *s, GSM_NoteEntry *Note, gboolean start)
GSM_NetworkInfo_State State
GSM_Error GSM_AddCategory(GSM_StateMachine *s, GSM_Category *Category)
GSM_Error GSM_SwitchCall(GSM_StateMachine *s, int ID, gboolean next)
GSM_Error(* PlayTone)(GSM_StateMachine *s, int Herz, unsigned char Volume, gboolean start)
GSM_Error(* GetBatteryCharge)(GSM_StateMachine *s, GSM_BatteryCharge *bat)
GSM_Error(* GetProfile)(GSM_StateMachine *s, GSM_Profile *Profile)
GSM_Error GSM_GetOriginalIMEI(GSM_StateMachine *s, char *value)
GSM_Error(* GetDateTime)(GSM_StateMachine *s, GSM_DateTime *date_time)
GSM_Error(* DeleteWAPBookmark)(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
GSM_Error GSM_SetWAPBookmark(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
GSM_Error(* SetIncomingCB)(GSM_StateMachine *s, gboolean enable)
GSM_Error(* GetBitmap)(GSM_StateMachine *s, GSM_Bitmap *Bitmap)
GSM_Error GSM_UnholdCall(GSM_StateMachine *s, int ID)
GSM_Error(* Install)(GSM_StateMachine *s, const char *ExtraPath, gboolean Minimal)
GSM_Error GSM_GetCallDivert(GSM_StateMachine *s, GSM_CallDivert *request, GSM_MultiCallDivert *result)
GSM_Error(* ConferenceCall)(GSM_StateMachine *s, int ID)
GSM_Error(* DeleteNote)(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error GSM_SetAutoNetworkLogin(GSM_StateMachine *s)
GSM_Error GSM_AddSMS(GSM_StateMachine *s, GSM_SMSMessage *sms)
GSM_Error GSM_AddNote(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Phone_Functions * Functions
GSM_Error(* SetIncomingCall)(GSM_StateMachine *s, gboolean enable)
GSM_Error(* GetPPM)(GSM_StateMachine *s, char *value)
GSM_Error GSM_SetFastSMSSending(GSM_StateMachine *s, gboolean enable)
GSM_Error GSM_SetCalendar(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_Error(* GetSMS)(GSM_StateMachine *s, GSM_MultiSMSMessage *sms)
#define RUN_RESTARTABLE(return_value, function_call)
GSM_Error(* SetCalendar)(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_Error(* SetWAPSettings)(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error(* GetMMSFolders)(GSM_StateMachine *s, GSM_MMSFolders *folders)
GSM_Error GSM_Install(GSM_StateMachine *s, const char *ExtraPath, gboolean Minimal)
GSM_Error GSM_SetToDo(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error GSM_GetFilePart(GSM_StateMachine *s, GSM_File *File, int *Handle, size_t *Size)
GSM_Error GSM_GetRingtone(GSM_StateMachine *s, GSM_Ringtone *Ringtone, gboolean PhoneRingtone)
GSM_Error GSM_SetNote(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error GSM_GetSMSStatus(GSM_StateMachine *s, GSM_SMSMemoryStatus *status)
GSM_Error(* GetFolderListing)(GSM_StateMachine *s, GSM_File *File, gboolean start)
GSM_Error(* AddSMSFolder)(GSM_StateMachine *s, unsigned char *name)
GSM_Error(* SetBitmap)(GSM_StateMachine *s, GSM_Bitmap *Bitmap)
GSM_Error(* GetNotesStatus)(GSM_StateMachine *s, GSM_ToDoStatus *status)
GSM_Error(* UnholdCall)(GSM_StateMachine *s, int ID)
GSM_Error(* GetCalendar)(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_NetworkInfo_State PacketState
GSM_Error GSM_DeleteAllMemory(GSM_StateMachine *s, GSM_MemoryType MemoryType)
GSM_Error(* SendDTMF)(GSM_StateMachine *s, char *sequence)
GSM_Error GSM_GetScreenshot(GSM_StateMachine *s, GSM_BinaryPicture *picture)
GSM_Error(* DialVoice)(GSM_StateMachine *s, char *Number, GSM_CallShowNumber ShowNumber)
GSM_Error GSM_AddCalendar(GSM_StateMachine *s, GSM_CalendarEntry *Note)
#define PRINT_NOTE_INFO()
GSM_Error GSM_DeleteFolder(GSM_StateMachine *s, unsigned char *ID)
GSM_Error(* SetChatSettings)(GSM_StateMachine *s, GSM_ChatSettings *settings)
GSM_Error(* AddCalendar)(GSM_StateMachine *s, GSM_CalendarEntry *Note)
GSM_Error GSM_GetNextFileFolder(GSM_StateMachine *s, GSM_File *File, gboolean start)
GSM_Error(* ResetPhoneSettings)(GSM_StateMachine *s, GSM_ResetSettingsType Type)
GSM_Error(* GetSIMIMSI)(GSM_StateMachine *s, char *IMSI)
GSM_Error(* SwitchCall)(GSM_StateMachine *s, int ID, gboolean next)
GSM_Error GSM_SetRingtone(GSM_StateMachine *s, GSM_Ringtone *Ringtone, int *maxlength)
GSM_Error GSM_AddFolder(GSM_StateMachine *s, GSM_File *File)
GSM_Error GSM_PlayTone(GSM_StateMachine *s, int Herz, unsigned char Volume, gboolean start)
GSM_Error GSM_GetNextToDo(GSM_StateMachine *s, GSM_ToDoEntry *ToDo, gboolean start)
GSM_Error GSM_GetSignalQuality(GSM_StateMachine *s, GSM_SignalQuality *sig)
GSM_Error GSM_SetSyncMLSettings(GSM_StateMachine *s, GSM_SyncMLSettings *settings)
GSM_Error(* GetLocale)(GSM_StateMachine *s, GSM_Locale *locale)
GSM_Error(* GetNextMMSFileInfo)(GSM_StateMachine *s, unsigned char *FileID, int *MMSFolder, gboolean start)
GSM_Error(* SetNote)(GSM_StateMachine *s, GSM_NoteEntry *Note)
GSM_Error(* GetIMEI)(GSM_StateMachine *s)
GSM_Error(* SetToDo)(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error(* GetNextCalendar)(GSM_StateMachine *s, GSM_CalendarEntry *Note, gboolean start)
GSM_Error GSM_GetCalendarSettings(GSM_StateMachine *s, GSM_CalendarSettings *settings)
GSM_Error GSM_AddToDo(GSM_StateMachine *s, GSM_ToDoEntry *ToDo)
GSM_Error(* GetProductCode)(GSM_StateMachine *s, char *value)
GSM_Error GSM_EnterSecurityCode(GSM_StateMachine *s, GSM_SecurityCode *Code)
GSM_Error GSM_SetFileAttributes(GSM_StateMachine *s, GSM_File *File)
GSM_Error(* AnswerCall)(GSM_StateMachine *s, int ID, gboolean all)
GSM_Error GSM_GetHardware(GSM_StateMachine *s, char *value)
GSM_Error(* GetCallDivert)(GSM_StateMachine *s, GSM_CallDivert *request, GSM_MultiCallDivert *result)
char Model[GSM_MAX_MODEL_LENGTH+1]
GSM_Error GSM_GetManufacturer(GSM_StateMachine *s, char *value)
GSM_Error GSM_GetManufactureMonth(GSM_StateMachine *s, char *value)
GSM_Error GSM_GetRingtonesInfo(GSM_StateMachine *s, GSM_AllRingtonesInfo *Info)
GSM_Error GSM_SetDateTime(GSM_StateMachine *s, GSM_DateTime *date_time)
GSM_Error(* SetRingtone)(GSM_StateMachine *s, GSM_Ringtone *Ringtone, int *maxlength)
GSM_Error GSM_GetWAPSettings(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error(* GetFilePart)(GSM_StateMachine *s, GSM_File *File, int *Handle, size_t *Size)
GSM_Error(* SetProfile)(GSM_StateMachine *s, GSM_Profile *Profile)
GSM_Error(* CancelCall)(GSM_StateMachine *s, int ID, gboolean all)
GSM_Error(* DeleteUserRingtones)(GSM_StateMachine *s)
GSM_Error(* GetScreenshot)(GSM_StateMachine *s, GSM_BinaryPicture *picture)
GSM_Error GSM_GetDateTime(GSM_StateMachine *s, GSM_DateTime *date_time)
int smprintf(GSM_StateMachine *s, const char *format,...)
GSM_Error(* SetFastSMSSending)(GSM_StateMachine *s, gboolean enable)
GSM_Error(* GetMMSSettings)(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
GSM_Error GSM_GetProductCode(GSM_StateMachine *s, char *value)
GSM_Error(* GetMemoryStatus)(GSM_StateMachine *s, GSM_MemoryStatus *status)
GSM_Error GSM_GetFirmware(GSM_StateMachine *s, char *value, char *date, double *num)
GSM_Error GSM_SplitCall(GSM_StateMachine *s, int ID)
GSM_Error GSM_GetMemory(GSM_StateMachine *s, GSM_MemoryEntry *entry)
GSM_Error(* ClearFMStations)(GSM_StateMachine *s)