Gammu API
1.32.90
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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];
54
GSM_BatteryCharge
Charge
;
58
GSM_SignalQuality
Network
;
62
int
Received
;
66
int
Sent
;
70
int
Failed
;
74
char
IMEI[
GSM_MAX_IMEI_LENGTH
+ 1];
75
}
GSM_SMSDStatus
;
76
89
GSM_Error
SMSD_InjectSMS
(
GSM_SMSDConfig
* Config,
GSM_MultiSMSMessage
* sms,
char
*NewID);
90
101
GSM_Error
SMSD_GetStatus
(
GSM_SMSDConfig
* Config,
GSM_SMSDStatus
* status);
102
112
GSM_Error
SMSD_Shutdown
(
GSM_SMSDConfig
* Config);
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
*/
include
gammu-smsd.h
Generated by
1.8.1.2