Fixed getpid() to be real function on uClinux (just prototype was missing)
[gnokii.git] / include / gsm-wap.h
1 /*
2
3   G N O K I I
4
5   A Linux/Unix toolset and driver for Nokia mobile phones.
6
7   Released under the terms of the GNU GPL, see file COPYING for more details.
8   
9   Functions for manipulating WAP Settings and bookmarks
10
11 */
12
13 #ifndef __gsm_wap_h
14 #define __gsm_wap_h
15
16 #include "gsm-sms.h"
17
18 typedef struct {
19   char address[255+1];
20   char title[50+1];
21   u16 location;
22 } GSM_WAPBookmark;
23
24 typedef struct {
25   u8 location;
26   char homepage[100+1];
27   char title[20+1];
28   int bearer;
29   bool issecurity;
30   bool iscontinuous;
31   
32   /* for data bearer */
33   char ipaddress[20+1];
34   char dialup[20+1];
35   char user[50+1];     //is length OK ?
36   char password[50+1]; //is length OK ?
37   bool isspeed14400;
38   bool isISDNcall;
39   bool isnormalauthentication;
40
41   /* for sms bearer */
42   char server[21+1];
43
44   /* for sms or ussd bearer */
45   char service[20+1];
46   bool isIP;
47   
48   /* for ussd bearer */
49   char code[10+1];
50 } GSM_WAPSettings;
51
52 #define WAPSETTINGS_BEARER_SMS  0x00
53 #define WAPSETTINGS_BEARER_DATA 0x01
54 #define WAPSETTINGS_BEARER_USSD 0x02
55
56 int GSM_SaveWAPBookmarkToSMS(GSM_MultiSMSMessage *SMS,
57                              GSM_WAPBookmark *bookmark);
58
59 GSM_Error GSM_ReadWAPBookmark(GSM_SMSMessage *message, GSM_WAPBookmark *bookmark);
60
61 int GSM_SaveWAPSettingsToSMS(GSM_MultiSMSMessage *SMS,
62                              GSM_WAPSettings *settings);
63
64 #endif