| 
    Gammu API
    1.38.0
    
   | 
 
Data Structures | |
| struct | GSM_SMSDStatus | 
Typedefs | |
| typedef struct _GSM_SMSDConfig | GSM_SMSDConfig | 
Functions | |
| GSM_Error | SMSD_InjectSMS (GSM_SMSDConfig *Config, GSM_MultiSMSMessage *sms, char *NewID) | 
| GSM_Error | SMSD_GetStatus (GSM_SMSDConfig *Config, GSM_SMSDStatus *status) | 
| GSM_Error | SMSD_Shutdown (GSM_SMSDConfig *Config) | 
| GSM_Error | SMSD_ReadConfig (const char *filename, GSM_SMSDConfig *Config, gboolean uselog) | 
| GSM_Error | SMSD_MainLoop (GSM_SMSDConfig *Config, gboolean exit_on_failure, int max_failures) | 
| GSM_SMSDConfig * | SMSD_NewConfig (const char *name) | 
| void | SMSD_FreeConfig (GSM_SMSDConfig *config) | 
SMS daemon manipulations
| typedef struct _GSM_SMSDConfig GSM_SMSDConfig | 
SMSD configuration data, these are not expected to be manipulated directly by application.
Definition at line 29 of file gammu-smsd.h.
| void SMSD_FreeConfig | ( | GSM_SMSDConfig * | config | ) | 
Frees SMSD configuration.
| config | Pointer to SMSD configuration data. | 
| GSM_Error SMSD_GetStatus | ( | GSM_SMSDConfig * | Config, | 
| GSM_SMSDStatus * | status | ||
| ) | 
Gets SMSD status via shared memory.
| Config | SMSD configuration pointer. | 
| status | pointer where status will be copied | 
| GSM_Error SMSD_InjectSMS | ( | GSM_SMSDConfig * | Config, | 
| GSM_MultiSMSMessage * | sms, | ||
| char * | NewID | ||
| ) | 
Enqueues SMS message in SMS daemon queue.
| Config | SMSD configuration pointer. | 
| sms | Message data to send. | 
| NewID | Pointer to string where ID of new message will be written. Can be NULL and then it is ignored. | 
| GSM_Error SMSD_MainLoop | ( | GSM_SMSDConfig * | Config, | 
| gboolean | exit_on_failure, | ||
| int | max_failures | ||
| ) | 
Main SMS daemon loop. It connects to phone, scans for messages and sends messages from inbox. Can be interrupted by SMSD_Shutdown.
| Config | Pointer to SMSD configuration data. | 
| exit_on_failure | Whether failure should lead to terminaton of program. | 
| max_failures | Maximal number of failures after which SMSD will terminate. Use 0 to not terminate on failures. | 
| GSM_SMSDConfig* SMSD_NewConfig | ( | const char * | name | ) | 
Creates new SMSD configuration.
| name | Name of process, will be used for logging. If NULL, gammu-smsd text is used. | 
| GSM_Error SMSD_ReadConfig | ( | const char * | filename, | 
| GSM_SMSDConfig * | Config, | ||
| gboolean | uselog | ||
| ) | 
Reads SMSD configuration.
| filename | File name of configuration. | 
| Config | Pointer to SMSD configuration data. | 
| uselog | Whether to log errors to configured log. | 
| GSM_Error SMSD_Shutdown | ( | GSM_SMSDConfig * | Config | ) | 
Flags SMSD daemon to terminate itself gracefully.
| Config | Pointer to SMSD configuration data. |