5 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Version 0.3 Ralf Thelen 07.02.2002
13 #ifndef __mg_net_api_h
14 #define __mg_net_api_h
16 #define MG_NET_API_MAJOR_VERSION 0
17 #define MG_NET_API_MINOR_VERSION 3
20 #define MG_ERROR_TIMEOUT (-1001)
31 MG_GET_MEMORY_LOCATION,
32 MG_WRITE_PHONEBOOK_LOCATION,
33 MG_DELETE_PHONEBOOK_LOCATION,
39 MG_api_cmd cmd; /* requestet command */
40 char passwd[8]; /* password for udp requests */
41 char buffer[1024]; /* parameter */
74 } MG_rq_phonebook_location;
77 char destination[12]; /* destination */
78 char message[161]; /* the message */
79 char SMSCNumber[100]; /* SMSC number */
80 int SMSCenterIndex; /* SMSC number index in phone memory */
81 int SMSValidity; /* validity of sms */
82 char longsms; /* long messages, NOT USED ! */
83 char enablevoice; /* SMS enables voice indicator */
84 char disablevoice; /* SMS disables voice indicator */
85 char enableemail; /* SMS enables email indicator */
86 char disableemail; /* SMS disables email indicator */
87 char enablefax; /* SMS enables fax indicator */
88 char disablefax; /* SMS disables fax indicator */
89 char unicode; /* SMS coding type */
90 char delivery; /* we want delivery report */
94 int mg_init(char *hostname, char *passwd);
96 int mg_version(MG_rq_version *version);
97 int mg_identify(MG_rq_identify *ident);
98 int mg_memorystatus(MG_rq_memorystatus *stats);
99 int mg_get_memory_location(MG_rq_phonebook_location *rph);
100 int mg_write_phonebook_location(MG_rq_phonebook_location *wph);
101 int mg_delete_phonebook_location(MG_rq_phonebook_location *dph);
102 int mg_send_sms(MG_rq_send_sms *sms);
104 #endif /* __mg_net_api_h */