summaryrefslogtreecommitdiffstats
path: root/lib/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/protocol.h')
-rw-r--r--lib/protocol.h70
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
}