diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-08-02 17:37:08 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-08-02 17:37:08 +0200 |
commit | 056cf387d88ab0a0eab0c097474d62d8c3d09c13 (patch) | |
tree | eac0ec509db69d5287808de3dccdc401827e79d1 /include | |
parent | 50be5571afbcc535ea67dfd76367febb1c2a8255 (diff) | |
download | external_libsamsung-ipc-056cf387d88ab0a0eab0c097474d62d8c3d09c13.zip external_libsamsung-ipc-056cf387d88ab0a0eab0c097474d62d8c3d09c13.tar.gz external_libsamsung-ipc-056cf387d88ab0a0eab0c097474d62d8c3d09c13.tar.bz2 |
net: PLMN list extract helpers, PLMN type
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h index c70bb2b..390541e 100644 --- a/include/net.h +++ b/include/net.h @@ -64,6 +64,9 @@ #define IPC_NET_PLMN_STATUS_CURRENT 0x03 #define IPC_NET_PLMN_STATUS_FORBIDDEN 0x04 +#define IPC_NET_PLMN_TYPE_EMERGENCY 0x01 +#define IPC_NET_PLMN_TYPE_NORMAL 0x04 + #define IPC_NET_SERVICE_DOMAIN_GSM 0x02 #define IPC_NET_SERVICE_DOMAIN_GPRS 0x03 @@ -101,7 +104,7 @@ struct ipc_net_plmn_list_header { struct ipc_net_plmn_list_entry { unsigned char status; // IPC_NET_PLMN_STATUS char plmn[6]; - unsigned char type; + unsigned char type; // IPC_NET_PLMN_TYPE unsigned char unknown[2]; } __attribute__((__packed__)); @@ -132,6 +135,9 @@ int ipc_net_plmn_sel_setup(struct ipc_net_plmn_sel_request_data *data, unsigned char mode_sel, const char *plmn, unsigned char act); int ipc_net_regist_setup(struct ipc_net_regist_request_data *data, unsigned char domain); +unsigned char ipc_net_plmn_list_count_extract(const void *data, size_t size); +struct ipc_net_plmn_list_entry *ipc_net_plmn_list_entry_extract(const void *data, + size_t size, unsigned int index); #endif |