2017-05-23 19:15:33 +02:00
|
|
|
/* 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_SPA_NODE_H__
|
|
|
|
|
#define __PIPEWIRE_SPA_NODE_H__
|
|
|
|
|
|
2017-11-10 13:36:14 +01:00
|
|
|
#include <spa/node/node.h>
|
2017-08-08 19:55:14 +02:00
|
|
|
|
2017-07-11 15:57:20 +02:00
|
|
|
#include <pipewire/core.h>
|
|
|
|
|
#include <pipewire/node.h>
|
2017-05-23 19:15:33 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-10-13 16:18:42 +02:00
|
|
|
enum pw_spa_node_flags {
|
|
|
|
|
PW_SPA_NODE_FLAG_ASYNC = (1 << 0),
|
2018-01-30 15:08:44 +01:00
|
|
|
PW_SPA_NODE_FLAG_DISABLE = (1 << 1),
|
|
|
|
|
PW_SPA_NODE_FLAG_ACTIVATE = (1 << 2),
|
2018-04-13 20:05:46 +02:00
|
|
|
PW_SPA_NODE_FLAG_NO_REGISTER = (1 << 3),
|
2017-10-13 16:18:42 +02:00
|
|
|
};
|
|
|
|
|
|
2017-07-07 17:55:26 +02:00
|
|
|
struct pw_node *
|
|
|
|
|
pw_spa_node_new(struct pw_core *core,
|
2017-09-18 11:54:25 +02:00
|
|
|
struct pw_client *owner, /**< optional owner */
|
|
|
|
|
struct pw_global *parent, /**< optional parent */
|
2017-07-07 17:55:26 +02:00
|
|
|
const char *name,
|
2017-10-13 16:18:42 +02:00
|
|
|
enum pw_spa_node_flags flags,
|
2017-07-07 17:55:26 +02:00
|
|
|
struct spa_node *node,
|
2017-10-13 16:18:42 +02:00
|
|
|
struct spa_handle *handle,
|
2017-08-22 18:30:10 +02:00
|
|
|
struct pw_properties *properties,
|
|
|
|
|
size_t user_data_size);
|
2017-07-07 17:55:26 +02:00
|
|
|
|
|
|
|
|
struct pw_node *
|
2017-05-26 08:05:01 +02:00
|
|
|
pw_spa_node_load(struct pw_core *core,
|
2017-09-18 11:54:25 +02:00
|
|
|
struct pw_client *owner, /**< optional owner */
|
|
|
|
|
struct pw_global *parent, /**< optional parent */
|
2017-05-26 08:05:01 +02:00
|
|
|
const char *lib,
|
|
|
|
|
const char *factory_name,
|
|
|
|
|
const char *name,
|
2017-10-13 16:18:42 +02:00
|
|
|
enum pw_spa_node_flags flags,
|
2017-08-22 18:30:10 +02:00
|
|
|
struct pw_properties *properties,
|
|
|
|
|
size_t user_data_size);
|
2017-05-23 19:15:33 +02:00
|
|
|
|
2017-10-17 16:57:26 +02:00
|
|
|
void *pw_spa_node_get_user_data(struct pw_node *node);
|
|
|
|
|
|
2017-05-23 19:15:33 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* __PIPEWIRE_SPA_NODE_H__ */
|