From f25bb13718f334bc0c96d29ea9f3a57c0a6f3a34 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Tue, 20 Apr 2021 04:08:58 -0400 Subject: lib: add wpipc library Simple library that uses sockets for inter-process communication. It provides an API to create server and client objects. Users can add custom handlers in the server, and clients can send requests for those custom handlers. Signed-off-by: George Kiagiadakis --- lib/defs.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/defs.h (limited to 'lib/defs.h') diff --git a/lib/defs.h b/lib/defs.h new file mode 100644 index 0000000..e962db7 --- /dev/null +++ b/lib/defs.h @@ -0,0 +1,26 @@ +/* PipeWire AGL Cluster IPC + * + * Copyright © 2021 Collabora Ltd. + * @author Julian Bouzas + * + * SPDX-License-Identifier: MIT + */ + +#ifndef __ICIPC_DEFS_H__ +#define __ICIPC_DEFS_H__ + +#if defined(__GNUC__) +# define ICIPC_API_EXPORT extern __attribute__ ((visibility ("default"))) +#else +# define ICIPC_API_EXPORT extern +#endif + +#ifndef ICIPC_API +# define ICIPC_API ICIPC_API_EXPORT +#endif + +#ifndef ICIPC_PRIVATE_API +# define ICIPC_PRIVATE_API __attribute__ ((deprecated ("Private API"))) +#endif + +#endif -- cgit 1.2.3-korg