Gammu internals  1.38.0
gammu-statemachine.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_statemachine_h
8 #define __gammu_statemachine_h
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
19 #include <gammu-types.h>
20 #include <gammu-error.h>
21 #include <gammu-inifile.h>
22 
31 typedef void (*GSM_Log_Function) (const char *text, void *data);
32 
41 
42 #include <gammu-info.h>
43 
49 typedef struct {
53  char Model[50];
57  char DebugLevel[50];
61  char *Device;
65  char *Connection;
77  char *DebugFile;
89  char TextReminder[32];
93  char TextMeeting[32];
97  char TextCall[32];
101  char TextBirthday[32];
105  char TextMemo[32];
110 } GSM_Config;
111 
115 typedef enum {
147 
161  GSM_Log_Function log_function,
162  void *user_data);
163 
174 
184 
197 
209 int GSM_ReadDevice(GSM_StateMachine * s, gboolean waitforreply);
210 
220 
235 GSM_Error GSM_FindGammuRC(INI_Section ** result, const char *force_config);
236 
250 GSM_Error GSM_ReadConfig(INI_Section * cfg_info, GSM_Config * cfg, int num);
251 
264 
273 int GSM_GetConfigNum(const GSM_StateMachine * s);
274 
283 void GSM_SetConfigNum(GSM_StateMachine * s, int sections);
284 
294 
304 
313 GSM_ConnectionType GSM_GetUsedConnection(GSM_StateMachine * s);
314 
326 GSM_Error GSM_Install(GSM_StateMachine *s, const char *ExtraPath, gboolean Minimal);
327 
328 #ifdef __cplusplus
329 }
330 #endif
331 #endif
332 
333 /* Editor configuration
334  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
335  */
gboolean UseGlobalDebugFile
GSM_Error GSM_InitConnection_Log(GSM_StateMachine *s, int ReplyNum, GSM_Log_Function log_function, void *user_data)
Definition: gsmstate.c:711
GSM_Error GSM_InitConnection(GSM_StateMachine *s, int ReplyNum)
Definition: gsmstate.c:914
GSM_StateMachine * GSM_AllocStateMachine(void)
Definition: gsmstate.c:1677
void GSM_SetConfigNum(GSM_StateMachine *s, int sections)
Definition: gsmstate.c:1317
gboolean GSM_IsConnected(GSM_StateMachine *s)
Definition: gsmstate.c:976
GSM_Error
Definition: gammu-error.h:23
gboolean LockDevice
int GSM_ReadDevice(GSM_StateMachine *s, gboolean waitforreply)
Definition: gsmstate.c:919
void(* GSM_Log_Function)(const char *text, void *data)
GSM_ConnectionType
int gboolean
Definition: gammu-types.h:23
#define GSM_MAX_PHONE_FEATURES
Definition: gammu-limits.h:302
int GSM_GetConfigNum(const GSM_StateMachine *s)
Definition: gsmstate.c:1312
gboolean StartInfo
gboolean SyncTime
GSM_Error GSM_AbortOperation(GSM_StateMachine *s)
Definition: gsmstate.c:980
GSM_Error GSM_TerminateConnection(GSM_StateMachine *s)
Definition: gsmstate.c:949
GSM_Error GSM_FindGammuRC(INI_Section **result, const char *force_config)
Definition: gsmstate.c:1209
GSM_Config * GSM_GetConfig(GSM_StateMachine *s, int num)
Definition: gsmstate.c:1301
GSM_Error GSM_Install(GSM_StateMachine *s, const char *ExtraPath, gboolean Minimal)
Definition: api.c:1888
GSM_Error GSM_ReadConfig(INI_Section *cfg_info, GSM_Config *cfg, int num)
Definition: gsmstate.c:1350
GSM_ConnectionType GSM_GetUsedConnection(GSM_StateMachine *s)
Definition: gsmstate.c:1709
GSM_Feature
Definition: gammu-info.h:313
void GSM_FreeStateMachine(GSM_StateMachine *s)
Definition: gsmstate.c:1689