aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/sms.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-11-01 19:13:02 +0100
committerPaul Kocialkowski <contact@paulk.fr>2012-11-01 19:14:27 +0100
commitf722771a3837793c397d1db5075b8e8bd2906fed (patch)
tree3af17bae24b429dfb603c937cef85b29d6955f2c /samsung-ipc/sms.c
parent3b804a8dc0352281b95b2506b0e35114a37fe843 (diff)
downloadexternal_libsamsung-ipc-f722771a3837793c397d1db5075b8e8bd2906fed.zip
external_libsamsung-ipc-f722771a3837793c397d1db5075b8e8bd2906fed.tar.gz
external_libsamsung-ipc-f722771a3837793c397d1db5075b8e8bd2906fed.tar.bz2
SMS: Renamed structures according to messages names, build sms.c
Change-Id: I9e8d01ca8b0eb23d9ca2a2034c5bb9594f151e92 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/sms.c')
-rw-r--r--samsung-ipc/sms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/samsung-ipc/sms.c b/samsung-ipc/sms.c
index 58eba72..10fbf26 100644
--- a/samsung-ipc/sms.c
+++ b/samsung-ipc/sms.c
@@ -22,7 +22,7 @@
#include <string.h>
#include <assert.h>
-unsigned char* ipc_sms_send_msg_pack(struct ipc_sms_send_msg *msg, char *smsc,
+unsigned char* ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char *smsc,
unsigned char *pdu, int pdu_length)
{
unsigned char *data = NULL, *p = NULL;
@@ -32,13 +32,13 @@ unsigned char* ipc_sms_send_msg_pack(struct ipc_sms_send_msg *msg, char *smsc,
assert(pdu != NULL);
smsc_len = strlen(smsc);
- data_length = smsc_len + pdu_length + sizeof(struct ipc_sms_send_msg);
+ data_length = smsc_len + pdu_length + sizeof(struct ipc_sms_send_msg_request);
data = (unsigned char*) malloc(sizeof(unsigned char) * data_length);
memset(data, 0, data_length);
p = data;
- memcpy(p, &msg, sizeof(struct ipc_sms_send_msg));
- p += sizeof(struct ipc_sms_send_msg);
+ memcpy(p, &msg, sizeof(struct ipc_sms_send_msg_request));
+ p += sizeof(struct ipc_sms_send_msg_request);
memcpy(p, (char*) (smsc + 1), smsc_len);
p += smsc_len;
memcpy(p, pdu, pdu_length);