aboutsummaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/net.c b/net.c
index 76d94e8..8a87383 100644
--- a/net.c
+++ b/net.c
@@ -1,20 +1,20 @@
/**
- * This file is part of libmsm-h1.
+ * This file is part of libsamsung-ipc.
*
* Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
*
- * libmsm-h1 is free software: you can redistribute it and/or modify
+ * 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.
*
- * libmsm-h1 is distributed in the hope that it will be useful,
+ * 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 libmsm-h1. If not, see <http://www.gnu.org/licenses/>.
+ * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
*
*/
@@ -24,60 +24,60 @@
/**
* Requests the current PLMN
*/
-void msm_net_current_plmn(int request_id)
+void ipc_net_current_plmn(int request_id)
{
- msm_send_get(MSM_NET_CURRENT_PLMN, request_id);
+ ipc_send_get(IPC_NET_CURRENT_PLMN, request_id);
}
-void msm_rx_net_current_plmn(struct msm_request_info *info, char *data, int len)
+void ipc_rx_net_current_plmn(struct ipc_request_info *info, char *data, int len)
{
- struct msm_net_current_plmn *plmndata = (struct msm_net_current_plmn*)data;
+ struct ipc_net_current_plmn *plmndata = (struct ipc_net_current_plmn*)data;
info->data = plmndata;
info->length = sizeof(*plmndata);
- msm_rx_callback(info);
+ ipc_rx_callback(info);
}
-void msm_net_plmn_list(int request_id)
+void ipc_net_plmn_list(int request_id)
{
- msm_send_get(MSM_NET_PLMN_LIST, request_id);
+ ipc_send_get(IPC_NET_PLMN_LIST, request_id);
}
-void msm_rx_net_plmn_list(struct msm_request_info *info, char *data, int len)
+void ipc_rx_net_plmn_list(struct ipc_request_info *info, char *data, int len)
{
unsigned char num_entries = *((unsigned char*)data);
- struct msm_net_plmn_entries entries;
+ struct ipc_net_plmn_entries entries;
entries.num = num_entries;
- entries.data = (struct msm_net_plmn_entry*)(data+1);
+ entries.data = (struct ipc_net_plmn_entry*)(data+1);
info->data = &entries;
info->length = sizeof(entries);
- msm_rx_callback(info);
+ ipc_rx_callback(info);
}
-void msm_rx_net_regist(struct msm_request_info *info, const char *data, int len)
+void ipc_rx_net_regist(struct ipc_request_info *info, const char *data, int len)
{
- struct msm_net_regist *netinfo = (struct msm_net_regist*)data;
+ struct ipc_net_regist *netinfo = (struct ipc_net_regist*)data;
info->data = netinfo;
info->length = sizeof(*netinfo);
- msm_rx_callback(info);
+ ipc_rx_callback(info);
}
-void msm_net_identity(int request_id)
+void ipc_net_identity(int request_id)
{
- msm_send_get(MSM_NET_IDENTITY, request_id);
+ ipc_send_get(IPC_NET_IDENTITY, request_id);
}
-void msm_net_regist(int request_id, unsigned char type)
+void ipc_net_regist(int request_id, unsigned char type)
{
unsigned char data[] = { 0xff, 0x00 };
if(type == 0) {
- msm_send_get(MSM_NET_REGIST, request_id);
+ ipc_send_get(IPC_NET_REGIST, request_id);
} else {
data[1] = type;
- msm_send(MSM_NET_REGIST, MSM_TYPE_GET, data, sizeof(data), request_id);
+ ipc_send(IPC_NET_REGIST, IPC_TYPE_GET, data, sizeof(data), request_id);
}
}