diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-06-28 12:27:23 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-06-28 12:27:23 +0200 |
commit | 1edc56a5fcb62dfea78fc27e29d7d87eda8c5662 (patch) | |
tree | ba3d1db7ab5a34eaffcd1885494c586138a17342 /include | |
parent | a81f656e6f6109a1fb838d08235ad46d5d0a87de (diff) | |
download | external_libsamsung-ipc-1edc56a5fcb62dfea78fc27e29d7d87eda8c5662.zip external_libsamsung-ipc-1edc56a5fcb62dfea78fc27e29d7d87eda8c5662.tar.gz external_libsamsung-ipc-1edc56a5fcb62dfea78fc27e29d7d87eda8c5662.tar.bz2 |
New utilities (not exposed by the API) for various I/O and ipc fill functions
Change-Id: I0bd1d7781971f217903f307b5ac418180afc0d50
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/samsung-ipc.h | 17 |
1 files changed, 7 insertions, 10 deletions
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 |