aboutsummaryrefslogtreecommitdiffstats
path: root/include/gprs.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-25 21:11:24 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-25 21:31:32 +0200
commitb4c84d912c83c5d0cec1dfa894de7fdf0e705cf0 (patch)
tree3b283eea58b64f6230a2d04d46f0e0b1deea899c /include/gprs.h
parentfcc205d9f852ccc72c7fed1b54d541e1319c2f1c (diff)
downloadexternal_libsamsung-ipc-b4c84d912c83c5d0cec1dfa894de7fdf0e705cf0.zip
external_libsamsung-ipc-b4c84d912c83c5d0cec1dfa894de7fdf0e705cf0.tar.gz
external_libsamsung-ipc-b4c84d912c83c5d0cec1dfa894de7fdf0e705cf0.tar.bz2
Some little updates for gprs message structures
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'include/gprs.h')
-rw-r--r--include/gprs.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/gprs.h b/include/gprs.h
index 29eba71..88f1edd 100644
--- a/include/gprs.h
+++ b/include/gprs.h
@@ -45,7 +45,7 @@
struct ipc_gprs_define_pdp_context {
unsigned char unk0[3];
unsigned char apn[124];
-} __attribute__((__packed__));
+};
struct ipc_gprs_ip_configuration {
unsigned char unk0;
@@ -56,32 +56,37 @@ struct ipc_gprs_ip_configuration {
unsigned char dns2[4];
unsigned char gateway[4];
unsigned char subnet_mask[4];
-} __attribute__((__packed__));
+};
+
+struct ipc_gprs_ip_configuration_response {
+ unsigned char unk0[376];
+};
struct ipc_gprs_call_status {
unsigned char cid;
unsigned char state; // IPC_GPRS_CALL_STATUS_TYPE_...
unsigned short reason;
-} __attribute__((__packed__));
+};
struct ipc_gprs_hsdpa_status {
unsigned char unk;
-} __attribute__((__packed__));
+};
struct ipc_gprs_pdp_context {
unsigned char unk0[6];
unsigned char username[32];
unsigned char password[32];
- unsigned char unk1[33];
-} __attribute__((__packed__));
+ unsigned char unk1[32];
+ unsigned char unk2;
+};
struct ipc_gprs_ps {
unsigned char unk[2];
-} __attribute__((__packed__));
+};
struct ipc_gprs_current_session_data_counter {
unsigned char unk[9];
-} __attribute__((__packed__));
+};
void ipc_gprs_pdp_context_setup(struct ipc_gprs_pdp_context *message, char *username, char *password);