Gammu internals  1.38.0
dummy.c File Reference
#include "../../gsmstate.h"
#include <string.h>
#include <time.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "../../gsmcomon.h"
#include "../../misc/coding/coding.h"
#include "../../misc/locales.h"
#include "../../misc/misc.h"
#include "../pfunc.h"
#include "dummy.h"
#include "../../../helper/string.h"
#include <dirent.h>
Include dependency graph for dummy.c:

Go to the source code of this file.

Macros

#define MKDIR(dir)   mkdir(dir, 0755)
 

Functions

GSM_Error DUMMY_Error (GSM_StateMachine *s, const char *message, const char *path)
 
char * DUMMY_GetFilePath (GSM_StateMachine *s, const char *filename)
 
char * DUMMY_GetFSFilePath (GSM_StateMachine *s, const unsigned char *fullname)
 
char * DUMMY_GetFSPath (GSM_StateMachine *s, const char *filename, int depth)
 
int DUMMY_GetCount (GSM_StateMachine *s, const char *dirname)
 
GSM_Error DUMMY_DeleteAll (GSM_StateMachine *s, const char *dirname)
 
int DUMMY_GetFirstFree (GSM_StateMachine *s, const char *dirname)
 
int DUMMY_GetNext (GSM_StateMachine *s, const char *dirname, int current)
 
char * DUMMY_GetSMSPath (GSM_StateMachine *s, GSM_SMSMessage *sms)
 
char * DUMMY_MemoryPath (GSM_StateMachine *s, GSM_MemoryEntry *entry)
 
char * DUMMY_ToDoPath (GSM_StateMachine *s, GSM_ToDoEntry *entry)
 
char * DUMMY_NotePath (GSM_StateMachine *s, GSM_NoteEntry *entry)
 
char * DUMMY_CalendarPath (GSM_StateMachine *s, GSM_CalendarEntry *entry)
 
char * DUMMY_AlarmPath (GSM_StateMachine *s, GSM_Alarm *entry)
 
GSM_Error DUMMY_Initialise (GSM_StateMachine *s)
 
GSM_Error DUMMY_Terminate (GSM_StateMachine *s)
 
GSM_Error DUMMY_DispatchMessage (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetProductCode (GSM_StateMachine *s, char *value)
 
GSM_Error DUMMY_GetIMEI (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetOriginalIMEI (GSM_StateMachine *s, char *value)
 
GSM_Error DUMMY_GetManufactureMonth (GSM_StateMachine *s, char *value)
 
GSM_Error DUMMY_GetHardware (GSM_StateMachine *s, char *value)
 
GSM_Error DUMMY_GetPPM (GSM_StateMachine *s, char *value)
 
GSM_Error DUMMY_GetFirmware (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetModel (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetDateTime (GSM_StateMachine *s, GSM_DateTime *date_time)
 
GSM_Error DUMMY_GetSMS (GSM_StateMachine *s, GSM_MultiSMSMessage *sms)
 
GSM_Error DUMMY_DeleteSMS (GSM_StateMachine *s, GSM_SMSMessage *sms)
 
GSM_Error DUMMY_SetSMS (GSM_StateMachine *s, GSM_SMSMessage *sms)
 
GSM_Error DUMMY_AddSMS (GSM_StateMachine *s, GSM_SMSMessage *sms)
 
GSM_Error DUMMY_GetSignalStrength (GSM_StateMachine *s, GSM_SignalQuality *sig)
 
GSM_Error DUMMY_GetSMSFolders (GSM_StateMachine *s, GSM_SMSFolders *folders)
 
GSM_Error DUMMY_GetNextSMS (GSM_StateMachine *s, GSM_MultiSMSMessage *sms, gboolean start)
 
GSM_Error DUMMY_GetSMSStatus (GSM_StateMachine *s, GSM_SMSMemoryStatus *status)
 
GSM_Error DUMMY_DialVoice (GSM_StateMachine *s, char *number, GSM_CallShowNumber ShowNumber)
 
GSM_Error DUMMY_DialService (GSM_StateMachine *s, char *number)
 
GSM_Error DUMMY_AnswerCall (GSM_StateMachine *s, int ID, gboolean all)
 
GSM_Error DUMMY_GetNetworkInfo (GSM_StateMachine *s, GSM_NetworkInfo *netinfo)
 
GSM_Error DUMMY_GetDisplayStatus (GSM_StateMachine *s, GSM_DisplayFeatures *features)
 
GSM_Error DUMMY_SetAutoNetworkLogin (GSM_StateMachine *s)
 
GSM_Error DUMMY_PressKey (GSM_StateMachine *s, GSM_KeyCode Key, gboolean Press)
 
GSM_Error DUMMY_Reset (GSM_StateMachine *s, gboolean hard)
 
GSM_Error DUMMY_CancelCall (GSM_StateMachine *s, int ID, gboolean all)
 
GSM_Error DUMMY_SendSavedSMS (GSM_StateMachine *s, int Folder, int Location)
 
GSM_Error DUMMY_SendSMS (GSM_StateMachine *s, GSM_SMSMessage *sms)
 
GSM_Error DUMMY_SetDateTime (GSM_StateMachine *s, GSM_DateTime *date_time)
 
GSM_Error DUMMY_SetSMSC (GSM_StateMachine *s, GSM_SMSC *smsc)
 
GSM_Error DUMMY_GetSMSC (GSM_StateMachine *s, GSM_SMSC *smsc)
 
GSM_Error DUMMY_EnterSecurityCode (GSM_StateMachine *s, GSM_SecurityCode *Code)
 
GSM_Error DUMMY_GetSecurityStatus (GSM_StateMachine *s, GSM_SecurityCodeType *Status)
 
GSM_Error DUMMY_ResetPhoneSettings (GSM_StateMachine *s, GSM_ResetSettingsType Type)
 
GSM_Error DUMMY_SendDTMF (GSM_StateMachine *s, char *sequence)
 
GSM_Error DUMMY_GetSIMIMSI (GSM_StateMachine *s, char *IMSI)
 
GSM_Error DUMMY_GetCallDivert (GSM_StateMachine *s, GSM_CallDivert *request, GSM_MultiCallDivert *response)
 
GSM_Error DUMMY_SetCallDivert (GSM_StateMachine *s, GSM_CallDivert *request)
 
GSM_Error DUMMY_CancelAllDiverts (GSM_StateMachine *s)
 
GSM_Error DUMMY_SetIncomingCall (GSM_StateMachine *s, gboolean enable)
 
GSM_Error DUMMY_SetIncomingCB (GSM_StateMachine *s, gboolean enable)
 
GSM_Error DUMMY_SetIncomingSMS (GSM_StateMachine *s, gboolean enable)
 
GSM_Error DUMMY_SetFastSMSSending (GSM_StateMachine *s, gboolean enable)
 
GSM_Error DUMMY_GetManufacturer (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetAlarm (GSM_StateMachine *s, GSM_Alarm *entry)
 
GSM_Error DUMMY_DeleteAlarm (GSM_StateMachine *s, GSM_Alarm *entry)
 
GSM_Error DUMMY_SetAlarm (GSM_StateMachine *s, GSM_Alarm *entry)
 
GSM_Error DUMMY_SetIncomingUSSD (GSM_StateMachine *s, gboolean enable)
 
GSM_Error DUMMY_GetRingtone (GSM_StateMachine *s, GSM_Ringtone *Ringtone, gboolean PhoneRingtone)
 
GSM_Error DUMMY_SetRingtone (GSM_StateMachine *s, GSM_Ringtone *Ringtone, int *maxlength)
 
GSM_Error DUMMY_GetWAPBookmark (GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
 
GSM_Error DUMMY_GetBitmap (GSM_StateMachine *s, GSM_Bitmap *Bitmap)
 
GSM_Error DUMMY_SetBitmap (GSM_StateMachine *s, GSM_Bitmap *Bitmap)
 
GSM_Error DUMMY_SetFileAttributes (GSM_StateMachine *s, GSM_File *File)
 
GSM_Error DUMMY_AddFilePart (GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
 
GSM_Error DUMMY_SendFilePart (GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
 
GSM_Error DUMMY_GetFilePart (GSM_StateMachine *s, GSM_File *File, int *Handle, size_t *Size)
 
GSM_Error DUMMY_GetFolderListing (GSM_StateMachine *s, GSM_File *File, gboolean start)
 
GSM_Error DUMMY_GetNextFileFolder (GSM_StateMachine *s, GSM_File *File, gboolean start)
 
GSM_Error DUMMY_DeleteFile (GSM_StateMachine *s, unsigned char *ID)
 
GSM_Error DUMMY_DeleteFolder (GSM_StateMachine *s, unsigned char *ID)
 
GSM_Error DUMMY_AddFolder (GSM_StateMachine *s, GSM_File *File)
 
GSM_Error DUMMY_GetMemoryStatus (GSM_StateMachine *s, GSM_MemoryStatus *Status)
 
GSM_Error DUMMY_GetMemory (GSM_StateMachine *s, GSM_MemoryEntry *entry)
 
GSM_Error DUMMY_GetNextMemory (GSM_StateMachine *s, GSM_MemoryEntry *entry, gboolean start)
 
GSM_Error DUMMY_DeleteMemory (GSM_StateMachine *s, GSM_MemoryEntry *entry)
 
GSM_Error DUMMY_SetMemory (GSM_StateMachine *s, GSM_MemoryEntry *entry)
 
GSM_Error DUMMY_AddMemory (GSM_StateMachine *s, GSM_MemoryEntry *entry)
 
GSM_Error DUMMY_DeleteAllMemory (GSM_StateMachine *s, GSM_MemoryType type)
 
GSM_Error DUMMY_GetToDoStatus (GSM_StateMachine *s, GSM_ToDoStatus *Status)
 
GSM_Error DUMMY_GetToDo (GSM_StateMachine *s, GSM_ToDoEntry *entry)
 
GSM_Error DUMMY_GetNextToDo (GSM_StateMachine *s, GSM_ToDoEntry *entry, gboolean start)
 
GSM_Error DUMMY_DeleteToDo (GSM_StateMachine *s, GSM_ToDoEntry *entry)
 
GSM_Error DUMMY_SetToDo (GSM_StateMachine *s, GSM_ToDoEntry *entry)
 
GSM_Error DUMMY_AddToDo (GSM_StateMachine *s, GSM_ToDoEntry *entry)
 
GSM_Error DUMMY_DeleteAllToDo (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetCalendarStatus (GSM_StateMachine *s, GSM_CalendarStatus *Status)
 
GSM_Error DUMMY_GetCalendar (GSM_StateMachine *s, GSM_CalendarEntry *entry)
 
GSM_Error DUMMY_GetNextCalendar (GSM_StateMachine *s, GSM_CalendarEntry *entry, gboolean start)
 
GSM_Error DUMMY_DeleteCalendar (GSM_StateMachine *s, GSM_CalendarEntry *entry)
 
GSM_Error DUMMY_SetCalendar (GSM_StateMachine *s, GSM_CalendarEntry *entry)
 
GSM_Error DUMMY_AddCalendar (GSM_StateMachine *s, GSM_CalendarEntry *entry)
 
GSM_Error DUMMY_DeleteAllCalendar (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetCalendarSettings (GSM_StateMachine *s, GSM_CalendarSettings *settings)
 
GSM_Error DUMMY_SetCalendarSettings (GSM_StateMachine *s, GSM_CalendarSettings *settings)
 
GSM_Error DUMMY_GetNoteStatus (GSM_StateMachine *s, GSM_ToDoStatus *Status)
 
GSM_Error DUMMY_GetNote (GSM_StateMachine *s, GSM_NoteEntry *entry)
 
GSM_Error DUMMY_GetNextNote (GSM_StateMachine *s, GSM_NoteEntry *entry, gboolean start)
 
GSM_Error DUMMY_DeleteNote (GSM_StateMachine *s, GSM_NoteEntry *entry)
 
GSM_Error DUMMY_SetNote (GSM_StateMachine *s, GSM_NoteEntry *entry)
 
GSM_Error DUMMY_AddNote (GSM_StateMachine *s, GSM_NoteEntry *entry)
 
GSM_Error DUMMY_DeleteAllNote (GSM_StateMachine *s)
 
GSM_Error DUMMY_GetLocale (GSM_StateMachine *s, GSM_Locale *locale)
 
GSM_Error DUMMY_SetLocale (GSM_StateMachine *s, GSM_Locale *locale)
 
GSM_Error DUMMY_GetFileSystemStatus (GSM_StateMachine *s, GSM_FileSystemStatus *Status)
 
GSM_Error DUMMY_GetBatteryCharge (GSM_StateMachine *s, GSM_BatteryCharge *bat)
 
GSM_Error DUMMY_PreAPICall (GSM_StateMachine *s)
 

Variables

GSM_Reply_Function DUMMYReplyFunctions []
 
GSM_Phone_Functions DUMMYPhone
 

Detailed Description

Author
Michal Čihař

Definition in file dummy.c.