Permalink
Browse files

net: correct net_regist_get and add helper

  • Loading branch information...
1 parent 7d53141 commit 28cbef8271908eddef649f31a67dc6b0380b1802 @ius committed Oct 28, 2011
Showing with 32 additions and 2 deletions.
  1. +1 −0 Android.mk
  2. +3 −1 include/net.h
  3. +27 −0 samsung-ipc/net.c
  4. +1 −1 vapi/samsung-ipc-1.0.vapi
View
@@ -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
View
@@ -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
View
@@ -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;
+}
@@ -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;

0 comments on commit 28cbef8

Please sign in to comment.