Gammu internals  1.38.0
gammu-smsd.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_smsd_h
8 #define __gammu_smsd_h
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include <gammu-error.h>
15 #include <gammu-message.h>
16 #include <gammu-misc.h>
17 
29 typedef struct _GSM_SMSDConfig GSM_SMSDConfig;
30 
34 #define SMSD_TEXT_LENGTH 255
35 
42 typedef struct {
46  int Version;
50  char PhoneID[SMSD_TEXT_LENGTH + 1];
54  char Client[SMSD_TEXT_LENGTH + 1];
66  int Received;
70  int Sent;
74  int Failed;
78  char IMEI[GSM_MAX_IMEI_LENGTH + 1];
82  char IMSI[GSM_MAX_INFO_LENGTH + 1];
88 
101 GSM_Error SMSD_InjectSMS(GSM_SMSDConfig * Config, GSM_MultiSMSMessage * sms, char *NewID);
102 
114 
125 
137 GSM_Error SMSD_ReadConfig(const char *filename, GSM_SMSDConfig * Config,
138  gboolean uselog);
139 
146 
163 GSM_Error SMSD_MainLoop(GSM_SMSDConfig * Config, gboolean exit_on_failure, int max_failures);
164 
175 GSM_SMSDConfig *SMSD_NewConfig(const char *name);
176 
184 void SMSD_FreeConfig(GSM_SMSDConfig * config);
185 #ifdef __cplusplus
186 }
187 #endif
188 #endif
189 
190 /* Editor configuration
191  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
192  */
void SMSD_EnableGlobalDebug(GSM_SMSDConfig *Config)
struct _GSM_SMSDConfig GSM_SMSDConfig
Definition: gammu-smsd.h:29
GSM_Error
Definition: gammu-error.h:23
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_Error SMSD_Shutdown(GSM_SMSDConfig *Config)
#define GSM_MAX_IMEI_LENGTH
Definition: gammu-limits.h:53
int gboolean
Definition: gammu-types.h:23
void SMSD_FreeConfig(GSM_SMSDConfig *config)
GSM_Error SMSD_InjectSMS(GSM_SMSDConfig *Config, GSM_MultiSMSMessage *sms, char *NewID)
GSM_BatteryCharge Charge
Definition: gammu-smsd.h:58
#define SMSD_TEXT_LENGTH
Definition: gammu-smsd.h:34
GSM_Error SMSD_GetStatus(GSM_SMSDConfig *Config, GSM_SMSDStatus *status)
GSM_SMSDConfig * SMSD_NewConfig(const char *name)
GSM_NetworkInfo NetInfo
Definition: gammu-smsd.h:86
GSM_SignalQuality Network
Definition: gammu-smsd.h:62
#define GSM_MAX_INFO_LENGTH
Definition: gammu-limits.h:61