diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-07-03 16:42:40 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-07-03 16:42:40 +0200 |
commit | 026a7f442ad2d319ee0f1f68a7a41fe482f93c68 (patch) | |
tree | 9af685e5013c0fe4ef8777d5d791260d7e653483 /include | |
parent | d1e05cfad4a5d96885622326ae080b6658ed08a9 (diff) | |
download | external_libsamsung-ipc-026a7f442ad2d319ee0f1f68a7a41fe482f93c68.zip external_libsamsung-ipc-026a7f442ad2d319ee0f1f68a7a41fe482f93c68.tar.gz external_libsamsung-ipc-026a7f442ad2d319ee0f1f68a7a41fe482f93c68.tar.bz2 |
Rename ipc_header to ipc_fmt_header, add ipc_rfs_header and utility functions
Change-Id: I4559319bd4c56a5994f2966fa3b853429ccc921a
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/protocol.h | 8 | ||||
-rw-r--r-- | include/samsung-ipc.h | 10 |
2 files changed, 14 insertions, 4 deletions
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 |