aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/gprs.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-02-06 20:26:30 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-02-06 20:26:30 +0100
commit0b3a6b4838e4ba55c79387bf7314e6dffb33bf42 (patch)
tree66988f78393b8e83974f4798ef095cde3b32eb99 /samsung-ipc/gprs.c
parentb2aaec58195f8ce135ba7debcef148998b8a3e71 (diff)
downloadexternal_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.zip
external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.tar.gz
external_libsamsung-ipc-0b3a6b4838e4ba55c79387bf7314e6dffb33bf42.tar.bz2
Follow consistent coding style in headers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/gprs.c')
-rw-r--r--samsung-ipc/gprs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/samsung-ipc/gprs.c b/samsung-ipc/gprs.c
index b73c8f7..7c14df9 100644
--- a/samsung-ipc/gprs.c
+++ b/samsung-ipc/gprs.c
@@ -22,7 +22,7 @@
#include <samsung-ipc.h>
-void ipc_gprs_port_list_setup(struct ipc_gprs_port_list *message)
+void ipc_gprs_port_list_setup(struct ipc_gprs_port_list_data *message)
{
// FIXME: These are only known-to-work values used on most devices
unsigned char bytes[] = {
@@ -32,41 +32,41 @@ void ipc_gprs_port_list_setup(struct ipc_gprs_port_list *message)
if (message == NULL)
return;
- memset(message, 0, sizeof(struct ipc_gprs_port_list));
+ memset(message, 0, sizeof(struct ipc_gprs_port_list_data));
- memcpy(message->unk, bytes, sizeof(bytes));
+ memcpy(message->magic, bytes, sizeof(bytes));
}
-void ipc_gprs_define_pdp_context_setup(struct ipc_gprs_define_pdp_context *message,
+void ipc_gprs_define_pdp_context_setup(struct ipc_gprs_define_pdp_context_data *message,
unsigned char cid, int enable, char *apn)
{
if (message == NULL)
return;
- memset(message, 0, sizeof(struct ipc_gprs_define_pdp_context));
+ memset(message, 0, sizeof(struct ipc_gprs_define_pdp_context_data));
message->enable = enable ? 1 : 0;
message->cid = cid;
- message->unk = 0x2;
+ message->magic = 0x2;
strncpy((char *) message->apn, apn, 124);
}
-void ipc_gprs_pdp_context_setup(struct ipc_gprs_pdp_context_set *message,
+void ipc_gprs_pdp_context_request_set_setup(struct ipc_gprs_pdp_context_request_set_data *message,
unsigned char cid, int enable, char *username, char *password)
{
if (message == NULL)
return;
- memset(message, 0, sizeof(struct ipc_gprs_pdp_context_set));
+ memset(message, 0, sizeof(struct ipc_gprs_pdp_context_request_set_data));
message->enable = enable ? 1 : 0;
message->cid = cid;
if (enable && username != NULL && password != NULL)
{
- message->unk0[2] = 0x13;
- message->unk2 = 0x1;
+ message->magic[2] = 0x13;
+ message->unknown2 = 0x1;
strncpy((char *) message->username, username, 32);
strncpy((char *) message->password, password, 32);
}