diff options
-rw-r--r-- | Android.mk | 1 | ||||
-rw-r--r-- | include/net.h | 4 | ||||
-rw-r--r-- | samsung-ipc/net.c | 27 | ||||
-rw-r--r-- | vapi/samsung-ipc-1.0.vapi | 2 |
4 files changed, 32 insertions, 2 deletions
@@ -10,6 +10,7 @@ samsung-ipc_files := \ samsung-ipc/util.c \ samsung-ipc/gprs.c \ samsung-ipc/misc.c \ + samsung-ipc/net.c \ samsung-ipc/sec.c \ samsung-ipc/device/$(TARGET_DEVICE)/$(TARGET_DEVICE)_ipc.c diff --git a/include/net.h b/include/net.h index 306433d..fe6f328 100644 --- a/include/net.h +++ b/include/net.h @@ -58,7 +58,7 @@ #define IPC_NET_SERVICE_DOMAIN_GSM 0x02 #define IPC_NET_SERVICE_DOMAIN_GPRS 0x03 -struct ipc_net_regist_set { +struct ipc_net_regist_get { unsigned char net; unsigned char domain; } __attribute__((__packed__)); @@ -85,5 +85,7 @@ struct ipc_net_plmn_entries { struct ipc_net_plmn_entry *data; }; +void ipc_net_regist_get(struct ipc_net_regist_get *message, int domain); + #endif diff --git a/samsung-ipc/net.c b/samsung-ipc/net.c new file mode 100644 index 0000000..9024e86 --- /dev/null +++ b/samsung-ipc/net.c @@ -0,0 +1,27 @@ +/** + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com + * + * libsamsung-ipc is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * libsamsung-ipc is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <radio.h> + +void ipc_net_regist_get(struct ipc_net_regist_get *message, int domain) +{ + message->net = 0xff; + message->domain = domain; +} diff --git a/vapi/samsung-ipc-1.0.vapi b/vapi/samsung-ipc-1.0.vapi index 3e68252..b7771d8 100644 --- a/vapi/samsung-ipc-1.0.vapi +++ b/vapi/samsung-ipc-1.0.vapi @@ -527,7 +527,7 @@ namespace SamsungIpc } } - [CCode (cname = "struct ipc_net_regist_set", destroy_function = "")] + [CCode (cname = "struct ipc_net_regist_get", destroy_function = "")] public struct RegistrationSetMessage { public uint8 net; |