Gammu internals  1.38.0
gammu-statemachine.h File Reference
#include <gammu-types.h>
#include <gammu-error.h>
#include <gammu-inifile.h>
#include <gammu-info.h>
Include dependency graph for gammu-statemachine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GSM_Config
 

Typedefs

typedef void(* GSM_Log_Function) (const char *text, void *data)
 
typedef struct _GSM_StateMachine GSM_StateMachine
 

Enumerations

enum  GSM_ConnectionType {
  GCT_MBUS2 = 1, GCT_FBUS2, GCT_FBUS2DLR3, GCT_DKU2AT,
  GCT_DKU2PHONET, GCT_DKU5FBUS2, GCT_ARK3116FBUS2, GCT_FBUS2PL2303,
  GCT_FBUS2BLUE, GCT_FBUS2IRDA, GCT_PHONETBLUE, GCT_AT,
  GCT_BLUEGNAPBUS, GCT_IRDAOBEX, GCT_IRDAGNAPBUS, GCT_IRDAAT,
  GCT_IRDAPHONET, GCT_BLUEFBUS2, GCT_BLUEAT, GCT_BLUEPHONET,
  GCT_BLUEOBEX, GCT_FBUS2USB, GCT_BLUES60, GCT_PROXYGNAPBUS,
  GCT_PROXYFBUS2, GCT_PROXYAT, GCT_PROXYPHONET, GCT_PROXYOBEX,
  GCT_PROXYS60, GCT_NONE
}
 

Functions

GSM_Error GSM_InitConnection_Log (GSM_StateMachine *s, int ReplyNum, GSM_Log_Function log_function, void *user_data)
 
GSM_Error GSM_InitConnection (GSM_StateMachine *s, int ReplyNum)
 
GSM_Error GSM_TerminateConnection (GSM_StateMachine *s)
 
GSM_Error GSM_AbortOperation (GSM_StateMachine *s)
 
int GSM_ReadDevice (GSM_StateMachine *s, gboolean waitforreply)
 
gboolean GSM_IsConnected (GSM_StateMachine *s)
 
GSM_Error GSM_FindGammuRC (INI_Section **result, const char *force_config)
 
GSM_Error GSM_ReadConfig (INI_Section *cfg_info, GSM_Config *cfg, int num)
 
GSM_ConfigGSM_GetConfig (GSM_StateMachine *s, int num)
 
int GSM_GetConfigNum (const GSM_StateMachine *s)
 
void GSM_SetConfigNum (GSM_StateMachine *s, int sections)
 
GSM_StateMachineGSM_AllocStateMachine (void)
 
void GSM_FreeStateMachine (GSM_StateMachine *s)
 
GSM_ConnectionType GSM_GetUsedConnection (GSM_StateMachine *s)
 
GSM_Error GSM_Install (GSM_StateMachine *s, const char *ExtraPath, gboolean Minimal)
 

Detailed Description

Author
Michal Čihař

State machine data.

Definition in file gammu-statemachine.h.

Typedef Documentation

§ GSM_Log_Function

typedef void(* GSM_Log_Function) (const char *text, void *data)

Callback function for logging.

Parameters
textText to be printed,
will be also sent (as a separate message).
dataArbitrary logger data, as passed to GSM_InitConnection_Log.

Definition at line 31 of file gammu-statemachine.h.

Enumeration Type Documentation

§ GSM_ConnectionType

Connection types definitions.

Enumerator
GCT_MBUS2 
GCT_FBUS2 
GCT_FBUS2DLR3 
GCT_DKU2AT 
GCT_DKU2PHONET 
GCT_DKU5FBUS2 
GCT_ARK3116FBUS2 
GCT_FBUS2PL2303 
GCT_FBUS2BLUE 
GCT_FBUS2IRDA 
GCT_PHONETBLUE 
GCT_AT 
GCT_BLUEGNAPBUS 
GCT_IRDAOBEX 
GCT_IRDAGNAPBUS 
GCT_IRDAAT 
GCT_IRDAPHONET 
GCT_BLUEFBUS2 
GCT_BLUEAT 
GCT_BLUEPHONET 
GCT_BLUEOBEX 
GCT_FBUS2USB 
GCT_BLUES60 
GCT_PROXYGNAPBUS 
GCT_PROXYFBUS2 
GCT_PROXYAT 
GCT_PROXYPHONET 
GCT_PROXYOBEX 
GCT_PROXYS60 
GCT_NONE 

Definition at line 115 of file gammu-statemachine.h.

115  {
116  GCT_MBUS2 = 1,
117  GCT_FBUS2,
119  GCT_DKU2AT,
127  GCT_AT,
129  GCT_IRDAOBEX,
131  GCT_IRDAAT,
134  GCT_BLUEAT,
136  GCT_BLUEOBEX,
137  GCT_FBUS2USB,
138  GCT_BLUES60,
141  GCT_PROXYAT,
144  GCT_PROXYS60,
145  GCT_NONE
GSM_ConnectionType