From 026a7f442ad2d319ee0f1f68a7a41fe482f93c68 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 3 Jul 2013 16:42:40 +0200 Subject: Rename ipc_header to ipc_fmt_header, add ipc_rfs_header and utility functions Change-Id: I4559319bd4c56a5994f2966fa3b853429ccc921a Signed-off-by: Paul Kocialkowski --- include/protocol.h | 8 +++++++- include/samsung-ipc.h | 10 +++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/protocol.h b/include/protocol.h index 5a9c2cc..db651ea 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -75,7 +75,7 @@ * Structures */ -struct ipc_header { +struct ipc_fmt_header { unsigned short length; unsigned char mseq; unsigned char aseq; @@ -84,6 +84,12 @@ struct ipc_header { unsigned char type; } __attribute__((__packed__)); +struct ipc_rfs_header { + unsigned int length; + unsigned char index; + unsigned char id; +} __attribute__((__packed__)); + #endif // vim:ts=4:sw=4:expandtab diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h index b68f6fc..1868709 100644 --- a/include/samsung-ipc.h +++ b/include/samsung-ipc.h @@ -37,7 +37,9 @@ struct ipc_client; struct ipc_handlers; -struct ipc_header; + +struct ipc_fmt_header; +struct ipc_rfs_header; struct ipc_message_info { unsigned char mseq; @@ -115,8 +117,10 @@ 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); +void ipc_fmt_header_fill(struct ipc_fmt_header *header, struct ipc_message_info *message); +void ipc_fmt_message_fill(struct ipc_fmt_header *header, struct ipc_message_info *message); +void ipc_rfs_header_fill(struct ipc_rfs_header *header, struct ipc_message_info *message); +void ipc_rfs_message_fill(struct ipc_rfs_header *header, struct ipc_message_info *message); /* * Samsung-IPC protocol -- cgit v1.1