Parameters: |
|
---|---|
Returns: | Error code |
Initiates connection with custom logging callback.
Parameters: |
|
---|---|
Returns: | Error code |
Initiates connection.
Parameters: |
|
---|---|
Returns: | Error code |
Terminates connection.
Parameters: |
|
---|---|
Returns: | Error code |
Aborts current operation.
This is thread safe call to abort any existing operations with the phone.
Private structure holding information about phone connection. Should be allocated by GSM_AllocStateMachine() and freed by GSM_FreeStateMachine().
Connection types definitions.
Configuration of state machine.
Model from config file.
Parameters: |
|
---|---|
Returns: | void |
Type of callback function for logging.
Attempts to read data from phone. This can be used for getting status of incoming events, which would not be found out without polling device.
Parameters:
- s -
State machine data
- waitforreply -
Whether to wait for some event
Return: Number of read bytes
Detects whether state machine is connected.
Parameters:
- s -
State machine data
Return: Whether phone is connected.
Finds and reads gammu configuration file. The search order depends on platform. On POSIX systems it looks for ~/.gammurc and then for /etc/gammurc, on Windows for gammurc in Application data folder, then in home and last fallback is in current driectory.
Parameters:
- result -
Ini file representation
- force_config -
Forcing of custom path instead of autodetected one (if NULL, autodetection is performed).
Return: Error code
Processes gammu configuration.
Parameters:
- cfg_info -
Ini file representation.
- cfg -
Where to store configuration.
- num -
Number of section to read.
Return: Whether we got valid configuration. Especially check for ERR_USING_DEFAULTS.
See: GSM_FallbackConfig
Gets gammu configuration from state machine. This actually returns pointer to internal configuration storage, so you can use it also for updating existing settings.
Parameters:
- s -
State machine data
- num -
Number of section to read, -1 for currently used.
Return: Pointer to configuration.
Gets number of active gammu configurations.
Parameters:
- s -
State machine data
Return: Number of sections.
Gets number of active gammu configurations.
Parameters:
- s -
State machine data
- sections -
Number of sections.
Allocates new clean state machine structure. You should free it then by GSM_FreeStateMachine.
Return: Pointer to state machine structure.
Frees state machine structure allocated by GSM_AllocStateMachine.
Parameters:
- s -
Pointer to state machine structure.
Gets number of active gammu configurations.
Parameters:
- s -
State machine data
Return: Connection type.
Configuration of state machine.
Public Memberschar Model[50]
Model from config file
char DebugLevel[50]
Debug level
char * Device
Device name from config file
char * Connection
Connection type as string
gboolean SyncTime
Synchronize time on startup?
gboolean LockDevice
Lock device ? (Unix)
char * DebugFile
Name of debug file
gboolean StartInfo
Display something during start ?
gboolean UseGlobalDebugFile
Should we use global debug file?
char TextReminder[32]
Text for reminder calendar entry category in local language
char TextMeeting[32]
Text for meeting calendar entry category in local language
char TextCall[32]
Text for call calendar entry category in local language
char TextBirthday[32]
Text for birthday calendar entry category in local language
char TextMemo[32]
Text for memo calendar entry category in local language
GSM_Feature PhoneFeatures[GSM_MAX_PHONE_FEATURES+1]
Phone features override.