From c48926e382b68d0764c88b453711a9b269735537 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sun, 3 Aug 2014 23:53:15 +0200 Subject: sms: Size function for helpers that return data with non-explicit size Also, pdu is data, not string Signed-off-by: Paul Kocialkowski --- include/sms.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sms.h b/include/sms.h index 5dd4b9f..95b225d 100644 --- a/include/sms.h +++ b/include/sms.h @@ -135,9 +135,14 @@ struct ipc_sms_svc_center_addr_header { * Helpers */ +size_t ipc_sms_send_msg_size_setup(struct ipc_sms_send_msg_request_header *header, + const void *smsc, size_t smsc_size, const void *pdu, size_t pdu_size); void *ipc_sms_send_msg_setup(struct ipc_sms_send_msg_request_header *header, const void *smsc, size_t smsc_size, const void *pdu, size_t pdu_size); -char *ipc_sms_incoming_msg_pdu_extract(const void *data, size_t size); +size_t ipc_sms_incoming_msg_pdu_size_extract(const void *data, size_t size); +void *ipc_sms_incoming_msg_pdu_extract(const void *data, size_t size); +size_t ipc_sms_save_msg_size_setup(struct ipc_sms_save_msg_request_header *header, + const void *smsc, size_t smsc_size, const void *pdu, size_t pdu_size); void *ipc_sms_save_msg_setup(struct ipc_sms_save_msg_request_header *header, const void *smsc, size_t smsc_size, const void *pdu, size_t pdu_size); int ipc_sms_del_msg_setup(struct ipc_sms_del_msg_request_data *data, -- cgit v1.1