diff options
author | 2021-07-08 11:18:08 +0300 | |
---|---|---|
committer | 2021-07-28 13:19:02 +0300 | |
commit | a2a3f6912e60c7932bad87a6d2249f0e83e637e1 (patch) | |
tree | 26a0ca7ac799c06ece9d657b634b3fea00ea6c6e /lib/protocol.h | |
parent | 6804d3b2a2a93fa5113c962878867b373c0358f7 (diff) |
style: convert code to systemd coding style
https://systemd.io/CODING_STYLE/
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Diffstat (limited to 'lib/protocol.h')
-rw-r--r-- | lib/protocol.h | 70 |
1 files changed, 33 insertions, 37 deletions
diff --git a/lib/protocol.h b/lib/protocol.h index 730c918..34a92a0 100644 --- a/lib/protocol.h +++ b/lib/protocol.h @@ -20,65 +20,61 @@ extern "C" { /* request */ ICIPC_API -size_t -icipc_protocol_calculate_request_size (const char *name, - const struct spa_pod *args); +size_t icipc_protocol_calculate_request_size( + const char *name, + const struct spa_pod *args); ICIPC_API -void -icipc_protocol_build_request (uint8_t *buffer, - size_t size, - const char *name, - const struct spa_pod *args); +void icipc_protocol_build_request( + uint8_t *buffer, + size_t size, + const char *name, + const struct spa_pod *args); ICIPC_API -bool -icipc_protocol_parse_request (const uint8_t *buffer, - size_t size, - const char **name, - const struct spa_pod **args); +bool icipc_protocol_parse_request( + const uint8_t *buffer, + size_t size, + const char **name, + const struct spa_pod **args); /* reply */ ICIPC_API -size_t -icipc_protocol_calculate_reply_ok_size (const struct spa_pod *value); +size_t icipc_protocol_calculate_reply_ok_size(const struct spa_pod *value); ICIPC_API -size_t -icipc_protocol_calculate_reply_error_size (const char *msg); +size_t icipc_protocol_calculate_reply_error_size(const char *msg); ICIPC_API -void -icipc_protocol_build_reply_ok (uint8_t *buffer, - size_t size, - const struct spa_pod *value); +void icipc_protocol_build_reply_ok( + uint8_t *buffer, + size_t size, + const struct spa_pod *value); ICIPC_API -void -icipc_protocol_build_reply_error (uint8_t *buffer, - size_t size, - const char *msg); +void icipc_protocol_build_reply_error( + uint8_t *buffer, + size_t size, + const char *msg); ICIPC_API -bool -icipc_protocol_is_reply_ok (const uint8_t *buffer, size_t size); +bool icipc_protocol_is_reply_ok(const uint8_t *buffer, size_t size); ICIPC_API -bool -icipc_protocol_is_reply_error (const uint8_t *buffer, size_t size); +bool icipc_protocol_is_reply_error(const uint8_t *buffer, size_t size); ICIPC_API -bool -icipc_protocol_parse_reply_ok (const uint8_t *buffer, - size_t size, - const struct spa_pod **value); +bool icipc_protocol_parse_reply_ok( + const uint8_t *buffer, + size_t size, + const struct spa_pod **value); ICIPC_API -bool -icipc_protocol_parse_reply_error (const uint8_t *buffer, - size_t size, - const char **msg); +bool icipc_protocol_parse_reply_error( + const uint8_t *buffer, + size_t size, + const char **msg); #ifdef __cplusplus } |