/usr/include/gammu/gammu-wap.h is in libgammu-dev 1.38.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | /**
* \file gammu-wap.h
* \author Michal Čihař
*
* WAP data and functions.
*/
#ifndef __gammu_wap_h
#define __gammu_wap_h
#ifdef __cplusplus
extern "C" {
#endif
/**
* \defgroup WAP WAP
* WAP bookmars and settings manipulations.
*/
#include <gammu-types.h>
#include <gammu-error.h>
#include <gammu-statemachine.h>
#include <stdlib.h> /* Needed for size_t declaration */
/**
* WAP bookmark data.
*
* \ingroup WAP
*/
typedef struct {
/**
* Location where it is stored.
*/
int Location;
/**
* Bookmark URL.
*/
unsigned char Address[(255 + 1) * 2];
/**
* Bookmark title.
*/
unsigned char Title[(50 + 1) * 2];
} GSM_WAPBookmark;
/* --------------------------- WAP or MMS settings ------------------------- */
/**
* Connection speed configuration.
*
* \ingroup WAP
*/
typedef enum {
WAPSETTINGS_SPEED_9600,
WAPSETTINGS_SPEED_14400,
WAPSETTINGS_SPEED_AUTO
} WAPSettings_Speed;
/**
* Connection bearer configuration.
*
* \ingroup WAP
*/
typedef enum {
WAPSETTINGS_BEARER_SMS = 1,
WAPSETTINGS_BEARER_DATA,
WAPSETTINGS_BEARER_USSD,
WAPSETTINGS_BEARER_GPRS
} WAPSettings_Bearer;
/**
* WAP setting.
*
* \ingroup WAP
*/
typedef struct {
/**
* Settings name.
*/
char Title[(20 + 1) * 2];
/**
* Home page.
*/
char HomePage[(100 + 1) * 2];
/**
* Bearer of WAP connection.
*/
WAPSettings_Bearer Bearer;
/**
* Secure connection?
*/
gboolean IsSecurity;
/**
* Is this connectin continuous?
*/
gboolean IsContinuous;
/**
* Whether is ISDN for data bearer
*/
gboolean IsISDNCall;
/**
* Whether is normal auth for data bearer
*/
gboolean IsNormalAuthentication;
/**
* Server for sms bearer.
*/
char Server[(21 + 1) * 2];
/**
* Service for sms or ussd bearer.
*/
char Service[(20 + 1) * 2];
/**
* Whether is IP, for sms or ussd bearer.
*/
gboolean IsIP;
/**
* Code for ussd bearer.
*/
char Code[(10 + 1) * 2];
/**
* IP address for data or gprs.
*/
char IPAddress[(20 + 1) * 2];
/**
* Login for data or gprs.
*/
gboolean ManualLogin;
/**
* Dial up number for data or gprs.
*/
char DialUp[(20 + 1) * 2];
/**
* User name for data or gprs.
*
* \todo Is length okay?
*/
char User[(50 + 1) * 2];
/**
* User password for data or gprs.
*
* \todo Is length okay?
*/
char Password[(50 + 1) * 2];
/**
* Speed settings for data or gprs.
*/
WAPSettings_Speed Speed;
} GSM_WAPSettings;
/**
* Set of WAP settings.
*
* \ingroup WAP
*/
typedef struct {
/**
* Location.
*/
int Location;
/**
* Number of elements in Settings.
*/
unsigned char Number;
/**
* Real WAP settings.
*/
GSM_WAPSettings Settings[4];
/**
* Whether this configuration is active.
*/
gboolean Active;
/**
* Whether this configuration is read only.
*/
gboolean ReadOnly;
/**
* Proxy server.
*/
char Proxy[(100 + 1) * 2];
/**
* Proxy port.
*/
int ProxyPort;
/**
* Second proxy server.
*/
char Proxy2[(100 + 1) * 2];
/**
* Second proxy port.
*/
int Proxy2Port;
/**
* Bearer of current connection.
*/
WAPSettings_Bearer ActiveBearer;
} GSM_MultiWAPSettings;
/**
* Encodes URL to VBKM file.
*
* \param Buffer Storage for text.
* \param Length Pointer to storage, will be updated.
* \param bookmark Bookmark to encode.
*
* \return Error code.
*
* \ingroup WAP
*/
GSM_Error GSM_EncodeURLFile(unsigned char *Buffer, size_t * Length,
GSM_WAPBookmark * bookmark);
/**
* Reads WAP bookmark.
*
* \param s State machine pointer.
* \param bookmark Bookmark storage, need to contain location.
*
* \return Error code
*
* \ingroup WAP
*/
GSM_Error GSM_GetWAPBookmark(GSM_StateMachine * s, GSM_WAPBookmark * bookmark);
/**
* Sets WAP bookmark.
*
* \param s State machine pointer.
* \param bookmark Bookmark data.
*
* \return Error code
*
* \ingroup WAP
*/
GSM_Error GSM_SetWAPBookmark(GSM_StateMachine * s, GSM_WAPBookmark * bookmark);
/**
* Deletes WAP bookmark.
*
* \param s State machine pointer.
* \param bookmark Bookmark data, need to contain location.
*
* \return Error code
*
* \ingroup WAP
*/
GSM_Error GSM_DeleteWAPBookmark(GSM_StateMachine * s,
GSM_WAPBookmark * bookmark);
/**
* Acquires WAP settings.
*
* \param s State machine pointer.
* \param settings Settings storage.
*
* \return Error code
*
* \ingroup WAP
*/
GSM_Error GSM_GetWAPSettings(GSM_StateMachine * s,
GSM_MultiWAPSettings * settings);
/**
* Changes WAP settings.
*
* \param s State machine pointer.
* \param settings Settings data.
*
* \return Error code
*
* \ingroup WAP
*/
GSM_Error GSM_SetWAPSettings(GSM_StateMachine * s,
GSM_MultiWAPSettings * settings);
#ifdef __cplusplus
}
#endif
#endif
/* Editor configuration
* vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
*/
|