diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-07-08 11:18:08 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-07-28 13:19:02 +0300 |
commit | a2a3f6912e60c7932bad87a6d2249f0e83e637e1 (patch) | |
tree | 26a0ca7ac799c06ece9d657b634b3fea00ea6c6e /lib/server.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/server.h')
-rw-r--r-- | lib/server.h | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/lib/server.h b/lib/server.h index 3cc0ed9..6345035 100644 --- a/lib/server.h +++ b/lib/server.h @@ -12,7 +12,6 @@ #include <spa/pod/pod.h> #include "defs.h" - #include "receiver.h" #ifdef __cplusplus @@ -23,60 +22,59 @@ extern "C" { struct icipc_server; -typedef void (*icipc_server_client_handler_func_t) (struct icipc_server *self, - int client_fd, - enum icipc_receiver_sender_state client_state, - void *data); +typedef void (*icipc_server_client_handler_func_t)( + struct icipc_server *self, + int client_fd, + enum icipc_receiver_sender_state client_state, + void *data); -typedef bool (*icipc_server_request_handler_func_t) (struct icipc_server *self, - int client_fd, - const char *name, - const struct spa_pod *args, - void *data); +typedef bool (*icipc_server_request_handler_func_t)( + struct icipc_server *self, + int client_fd, + const char *name, + const struct spa_pod *args, + void *data); ICIPC_API -struct icipc_server * -icipc_server_new (const char *path, bool start); +struct icipc_server *icipc_server_new(const char *path, bool start); ICIPC_API -void -icipc_server_free (struct icipc_server *self); +void icipc_server_free(struct icipc_server *self); ICIPC_API -void -icipc_server_set_client_handler (struct icipc_server *self, - icipc_server_client_handler_func_t handler, - void *data); +void icipc_server_set_client_handler( + struct icipc_server *self, + icipc_server_client_handler_func_t handler, + void *data); ICIPC_API -void -icipc_server_clear_client_handler (struct icipc_server *self); +void icipc_server_clear_client_handler(struct icipc_server *self); ICIPC_API -bool -icipc_server_set_request_handler (struct icipc_server *self, - const char *name, - icipc_server_request_handler_func_t handler, - void *data); +bool icipc_server_set_request_handler( + struct icipc_server *self, + const char *name, + icipc_server_request_handler_func_t handler, + void *data); ICIPC_API -void -icipc_server_clear_request_handler (struct icipc_server *self, - const char *name); +void icipc_server_clear_request_handler( + struct icipc_server *self, + const char *name); /* for request handlers only */ ICIPC_API -bool -icipc_server_reply_ok (struct icipc_server *self, - int client_fd, - const struct spa_pod *value); +bool icipc_server_reply_ok( + struct icipc_server *self, + int client_fd, + const struct spa_pod *value); ICIPC_API -bool -icipc_server_reply_error (struct icipc_server *self, - int client_fd, - const char *msg); +bool icipc_server_reply_error( + struct icipc_server *self, + int client_fd, + const char *msg); #ifdef __cplusplus } |