aboutsummaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-23 12:14:28 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-23 21:11:44 +0200
commita348eea9de4cc90d0283d9f34dd216367ea58fc7 (patch)
tree192cbb61d964bb973404a60308aabdea1aa1e4c5 /include/net.h
parent3081adc9b75f394badb03e22dfb611b15badac5f (diff)
downloadexternal_libsamsung-ipc-a348eea9de4cc90d0283d9f34dd216367ea58fc7.zip
external_libsamsung-ipc-a348eea9de4cc90d0283d9f34dd216367ea58fc7.tar.gz
external_libsamsung-ipc-a348eea9de4cc90d0283d9f34dd216367ea58fc7.tar.bz2
Various updates regarding better vala integration
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h101
1 files changed, 50 insertions, 51 deletions
diff --git a/include/net.h b/include/net.h
index 8e650e9..70778f7 100644
--- a/include/net.h
+++ b/include/net.h
@@ -21,77 +21,76 @@
#ifndef __NET_H__
#define __NET_H__
-#define IPC_NET_PREF_PLMN 0x0801
-#define IPC_NET_PLMN_SEL 0x0802
-#define IPC_NET_CURRENT_PLMN 0x0803
-#define IPC_NET_PLMN_LIST 0x0804
-#define IPC_NET_REGIST 0x0805
-#define IPC_NET_SUBSCRIBER_NUM 0x0806
-#define IPC_NET_BAND_SEL 0x0807
-#define IPC_NET_SERVICE_DOMAIN_CONFIG 0x0808
-#define IPC_NET_POWERON_ATTACH 0x0809
-#define IPC_NET_MODE_SEL 0x080A
-#define IPC_NET_ACQ_ORDER 0x080B
-#define IPC_NET_IDENTITY 0x080C
-#define IPC_NET_CURRENT_RRC_STATUS 0x080D
+#define IPC_NET_PREF_PLMN 0x0801
+#define IPC_NET_PLMN_SEL 0x0802
+#define IPC_NET_CURRENT_PLMN 0x0803
+#define IPC_NET_PLMN_LIST 0x0804
+#define IPC_NET_REGIST 0x0805
+#define IPC_NET_SUBSCRIBER_NUM 0x0806
+#define IPC_NET_BAND_SEL 0x0807
+#define IPC_NET_SERVICE_DOMAIN_CONFIG 0x0808
+#define IPC_NET_POWERON_ATTACH 0x0809
+#define IPC_NET_MODE_SEL 0x080A
+#define IPC_NET_ACQ_ORDER 0x080B
+#define IPC_NET_IDENTITY 0x080C
+#define IPC_NET_CURRENT_RRC_STATUS 0x080D
-#define IPC_NET_SERVICE_TYPE_GSM 0x01
-#define IPC_NET_SERVICE_TYPE_GSM2 0x02
-#define IPC_NET_SERVICE_TYPE_GPRS 0x03
-#define IPC_NET_SERVICE_TYPE_EDGE 0x04
-#define IPC_NET_SERVICE_TYPE_UMTS 0x05
+#define IPC_NET_PLMN_STATUS_AVAILABLE 0x02
+#define IPC_NET_PLMN_STATUS_CURRENT 0x03
+#define IPC_NET_PLMN_STATUS_FORBIDDEN 0x04
-#define IPC_NET_SERVICE_LEVEL_NONE 0x01
-#define IPC_NET_SERVICE_LEVEL_HOME 0x02
-#define IPC_NET_SERVICE_LEVEL_SEARCHING 0x03
-#define IPC_NET_SERVICE_LEVEL_EMERGENCY 0x04
-#define IPC_NET_SERVICE_LEVEL_NONE2 0x05
-#define IPC_NET_SERVICE_LEVEL_ROAMING 0x06
+#define IPC_NET_PLMN_SEL_MANUAL 0x00
+#define IPC_NET_PLMN_SEL_AUTO 0x01
-#define IPC_NET_PLMN_STATUS_AVAILABLE 2
-#define IPC_NET_PLMN_STATUS_CURRENT 3
-#define IPC_NET_PLMN_STATUS_FORBIDDEN 4
+#define IPC_NET_ACCESS_TECHNOLOGY_UNKNOWN 0xff
+#define IPC_NET_ACCESS_TECHNOLOGY_GSM 0x00
+#define IPC_NET_ACCESS_TECHNOLOGY_GPRS 0x01
+#define IPC_NET_ACCESS_TECHNOLOGY_GPRS2 0x02
+#define IPC_NET_ACCESS_TECHNOLOGY_EDGE 0x03
+#define IPC_NET_ACCESS_TECHNOLOGY_UMTS 0x04
-#define IPC_NET_PLMN_SEL_MANUAL 0
-#define IPC_NET_PLMN_SEL_AUTO 1
+#define IPC_NET_REGISTRATION_STATE_NONE 0x01
+#define IPC_NET_REGISTRATION_STATE_HOME 0x02
+#define IPC_NET_REGISTRATION_STATE_SEARCHING 0x03
+#define IPC_NET_REGISTRATION_STATE_EMERGENCY 0x04
+#define IPC_NET_REGISTRATION_STATE_UNKNOWN 0x05
+#define IPC_NET_REGISTRATION_STATE_ROAMING 0x06
struct ipc_net_current_plmn {
- char unk;
- unsigned char slevel;
- char plmn[6];
- unsigned char type;
- unsigned short lac;
+ char unk;
+ unsigned char reg_state; // IPC_NET_REGISTRATION_STATE_...
+ char plmn[6];
+ unsigned char type; // IPC_NET_SERVICE_TYPE_... ?
+ unsigned short lac;
} __attribute__((__packed__));
struct ipc_net_regist_set {
- unsigned char net;
- unsigned char domain;
+ unsigned char net;
+ unsigned char domain;
} __attribute__((__packed__));
struct ipc_net_regist {
- unsigned char act, domain, status, edge;
- unsigned short lac;
- unsigned int cid;
- char rej_cause;
+ unsigned char act; // IPC_NET_ACCESS_TECHNOLOGY_...
+ unsigned char reg_state; // IPC_NET_REGISTRATION_STATE_...
+ unsigned char unk; // domain?
+ unsigned char edge;
+ unsigned short lac;
+ unsigned int cid;
+ char rej_cause;
} __attribute__((__packed__));
struct ipc_net_plmn_entry {
- unsigned char status;
- char plmn[6];
- unsigned char type;
- char unk[2];
+ unsigned char status; // IPC_NET_PLMN_STATUS_...
+ char plmn[6];
+ unsigned char type;
+ char unk[2];
} __attribute__((__packed__));
struct ipc_net_plmn_entries {
- unsigned char num;
- struct ipc_net_plmn_entry *data;
+ unsigned char num;
+ struct ipc_net_plmn_entry *data;
};
-void ipc_net_current_plmn(int request_id);
-void ipc_net_plmn_list(int request_id);
-void ipc_net_identity(int request_id);
-void ipc_net_regist(int request_id, unsigned char type);
-
#endif