diff options
author | Wim Taymans <wtaymans@redhat.com> | 2017-07-11 15:57:20 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2017-07-11 16:08:22 +0200 |
commit | d1655196c3a54de9dad08cde7ecde17d9c0acf8b (patch) | |
tree | fa3c48546d7c400882b18aba81a35d6fa4c0e85f /src/modules/module-client-node/client-node.h | |
parent | 847cef83b665fcdeb7d50fe02ea51df460c857c4 (diff) |
move things around
Diffstat (limited to 'src/modules/module-client-node/client-node.h')
-rw-r--r-- | src/modules/module-client-node/client-node.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/modules/module-client-node/client-node.h b/src/modules/module-client-node/client-node.h new file mode 100644 index 00000000..1dcaec8c --- /dev/null +++ b/src/modules/module-client-node/client-node.h @@ -0,0 +1,57 @@ +/* PipeWire + * Copyright (C) 2015 Wim Taymans <wim.taymans@gmail.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#ifndef __PIPEWIRE_CLIENT_NODE_H__ +#define __PIPEWIRE_CLIENT_NODE_H__ + +#include <pipewire/node.h> +#include <extensions/client-node.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** \class pw_client_node + * + * PipeWire client node interface + */ +struct pw_client_node { + struct pw_node *node; + + struct pw_resource *resource; + + PW_SIGNAL(destroy_signal, (struct pw_listener *listener, struct pw_client_node *node)); +}; + +struct pw_client_node * +pw_client_node_new(struct pw_resource *resource, + const char *name, + struct pw_properties *properties); + +void +pw_client_node_destroy(struct pw_client_node *node); + +int +pw_client_node_get_fds(struct pw_client_node *node, int *readfd, int *writefd); + +#ifdef __cplusplus +} +#endif + +#endif /* __PIPEWIRE_CLIENT_NODE_H__ */ |