Gammu API  1.32.90
gammu-smsd.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_smsd_h
8 #define __gammu_smsd_h
9 
10 #include <gammu-error.h>
11 #include <gammu-message.h>
12 #include <gammu-misc.h>
13 
25 typedef struct _GSM_SMSDConfig GSM_SMSDConfig;
26 
30 #define SMSD_TEXT_LENGTH 255
31 
38 typedef struct {
42  int Version;
46  char PhoneID[SMSD_TEXT_LENGTH + 1];
50  char Client[SMSD_TEXT_LENGTH + 1];
62  int Received;
66  int Sent;
70  int Failed;
74  char IMEI[GSM_MAX_IMEI_LENGTH + 1];
76 
89 GSM_Error SMSD_InjectSMS(GSM_SMSDConfig * Config, GSM_MultiSMSMessage * sms, char *NewID);
90 
102 
113 
125 GSM_Error SMSD_ReadConfig(const char *filename, GSM_SMSDConfig * Config,
126  gboolean uselog);
127 
144 GSM_Error SMSD_MainLoop(GSM_SMSDConfig * Config, gboolean exit_on_failure, int max_failures);
145 
156 GSM_SMSDConfig *SMSD_NewConfig(const char *name);
157 
165 void SMSD_FreeConfig(GSM_SMSDConfig * config);
166 #endif
167 
168 /* Editor configuration
169  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
170  */