aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-02-11 16:49:56 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-02-11 16:49:56 +0100
commit5482a778f9574c2cf3d941d5065bad58a30d79cc (patch)
tree4a5edbbd54f81c85e361adc841ca4504754a8a71 /samsung-ipc
parent828f125ee5957ee3f64d45329f5ac261a2a3c1a7 (diff)
downloadexternal_libsamsung-ipc-5482a778f9574c2cf3d941d5065bad58a30d79cc.zip
external_libsamsung-ipc-5482a778f9574c2cf3d941d5065bad58a30d79cc.tar.gz
external_libsamsung-ipc-5482a778f9574c2cf3d941d5065bad58a30d79cc.tar.bz2
Extract in helpers naming
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/call.c11
-rw-r--r--samsung-ipc/misc.c2
-rw-r--r--samsung-ipc/sec.c2
3 files changed, 6 insertions, 9 deletions
diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c
index ba7097e..2830c46 100644
--- a/samsung-ipc/call.c
+++ b/samsung-ipc/call.c
@@ -47,7 +47,7 @@ int ipc_call_outgoing_setup(struct ipc_call_outgoing_data *data,
return 0;
}
-unsigned char ipc_call_list_get_count(const void *data, size_t size)
+unsigned char ipc_call_list_count_extract(const void *data, size_t size)
{
struct ipc_call_list_header *header;
@@ -59,7 +59,7 @@ unsigned char ipc_call_list_get_count(const void *data, size_t size)
return header->count;
}
-struct ipc_call_list_entry *ipc_call_list_get_entry(const void *data,
+struct ipc_call_list_entry *ipc_call_list_entry_extract(const void *data,
size_t size, unsigned int index)
{
struct ipc_call_list_entry *entry = NULL;
@@ -70,7 +70,7 @@ struct ipc_call_list_entry *ipc_call_list_get_entry(const void *data,
if (data == NULL)
return NULL;
- count = ipc_call_list_get_count(data, size);
+ count = ipc_call_list_count_extract(data, size);
if (count == 0)
return NULL;
@@ -87,14 +87,11 @@ struct ipc_call_list_entry *ipc_call_list_get_entry(const void *data,
return entry;
}
-char *ipc_call_list_get_entry_number(const void *data,
- size_t size, unsigned int index)
+char *ipc_call_list_entry_number_extract(const struct ipc_call_list_entry *entry)
{
- struct ipc_call_list_entry *entry;
char *number;
size_t number_length;
- entry = ipc_call_list_get_entry(data, size, index);
if (entry == NULL)
return NULL;
diff --git a/samsung-ipc/misc.c b/samsung-ipc/misc.c
index f36403e..b766b3c 100644
--- a/samsung-ipc/misc.c
+++ b/samsung-ipc/misc.c
@@ -23,7 +23,7 @@
#include <samsung-ipc.h>
-char *ipc_misc_me_imsi_get_imsi(const void *data, size_t size)
+char *ipc_misc_me_imsi_imsi_extract(const void *data, size_t size)
{
struct ipc_misc_me_imsi_header *header;
char *imsi;
diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c
index 9017cb9..c25dd9e 100644
--- a/samsung-ipc/sec.c
+++ b/samsung-ipc/sec.c
@@ -117,7 +117,7 @@ int ipc_sec_change_locking_pw_setup(struct ipc_sec_change_locking_pw_data *data,
return 0;
}
-void *ipc_sec_rsim_access_get_file_data(const void *data, size_t size)
+void *ipc_sec_rsim_access_file_data_extract(const void *data, size_t size)
{
struct ipc_sec_rsim_access_response_header *header;
void *file_data;