From 1edc56a5fcb62dfea78fc27e29d7d87eda8c5662 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 28 Jun 2013 12:27:23 +0200 Subject: New utilities (not exposed by the API) for various I/O and ipc fill functions Change-Id: I0bd1d7781971f217903f307b5ac418180afc0d50 Signed-off-by: Paul Kocialkowski --- include/samsung-ipc.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h index 02d2e07..b68f6fc 100644 --- a/include/samsung-ipc.h +++ b/include/samsung-ipc.h @@ -37,6 +37,7 @@ struct ipc_client; struct ipc_handlers; +struct ipc_header; struct ipc_message_info { unsigned char mseq; @@ -106,20 +107,16 @@ char *ipc_client_gprs_get_iface(struct ipc_client *client, int cid); int ipc_client_gprs_get_capabilities(struct ipc_client *client, struct ipc_client_gprs_capabilities *capabilities); -/* Utility functions */ -void ipc_client_log_recv(struct ipc_client *client, - struct ipc_message_info *response, const char *prefix); -void ipc_client_log_send(struct ipc_client *client, - struct ipc_message_info *request, const char *prefix); const char *ipc_response_type_to_str(int type); const char *ipc_request_type_to_str(int type); const char *ipc_command_to_str(int command); - void ipc_client_hex_dump(struct ipc_client *client, void *data, int size); -void *ipc_client_mtd_read(struct ipc_client *client, char *mtd_name, int size, - int block_size); -void *ipc_client_file_read(struct ipc_client *client, char *file_name, int size, - int block_size); +void ipc_client_log_recv(struct ipc_client *client, + struct ipc_message_info *response, const char *prefix); +void ipc_client_log_send(struct ipc_client *client, + struct ipc_message_info *request, const char *prefix); +void ipc_header_fill(struct ipc_header *header, struct ipc_message_info *message); +void ipc_message_info_fill(struct ipc_header *header, struct ipc_message_info *message); /* * Samsung-IPC protocol -- cgit v1.1