2017-06-21 12:11:54 +02:00
|
|
|
/* PipeWire
|
|
|
|
|
*
|
2018-11-05 17:48:52 +01:00
|
|
|
* Copyright © 2018 Wim Taymans
|
2017-06-21 12:11:54 +02:00
|
|
|
*
|
2018-11-05 17:48:52 +01:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
2017-06-21 12:11:54 +02:00
|
|
|
*
|
2018-11-05 17:48:52 +01:00
|
|
|
* The above copyright notice and this permission notice (including the next
|
|
|
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
|
* Software.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
2017-06-21 12:11:54 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __PIPEWIRE_EXT_CLIENT_NODE_H__
|
|
|
|
|
#define __PIPEWIRE_EXT_CLIENT_NODE_H__
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-11-10 13:36:14 +01:00
|
|
|
#include <spa/utils/defs.h>
|
|
|
|
|
#include <spa/param/param.h>
|
2017-06-21 12:11:54 +02:00
|
|
|
|
2017-07-13 15:21:52 +02:00
|
|
|
#include <pipewire/proxy.h>
|
|
|
|
|
|
2017-08-04 16:49:13 +02:00
|
|
|
struct pw_client_node_proxy;
|
2017-07-13 15:21:52 +02:00
|
|
|
|
|
|
|
|
#define PW_VERSION_CLIENT_NODE 0
|
2017-06-21 12:11:54 +02:00
|
|
|
|
|
|
|
|
/** information about a buffer */
|
|
|
|
|
struct pw_client_node_buffer {
|
|
|
|
|
uint32_t mem_id; /**< the memory id for the metadata */
|
|
|
|
|
uint32_t offset; /**< offset in memory */
|
|
|
|
|
uint32_t size; /**< size in memory */
|
|
|
|
|
struct spa_buffer *buffer; /**< buffer describing metadata and buffer memory */
|
|
|
|
|
};
|
|
|
|
|
|
2017-08-04 16:49:13 +02:00
|
|
|
#define PW_CLIENT_NODE_PROXY_METHOD_DONE 0
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_METHOD_UPDATE 1
|
2017-08-25 10:01:04 +02:00
|
|
|
#define PW_CLIENT_NODE_PROXY_METHOD_PORT_UPDATE 2
|
2017-10-13 16:18:42 +02:00
|
|
|
#define PW_CLIENT_NODE_PROXY_METHOD_SET_ACTIVE 3
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_METHOD_EVENT 4
|
2018-09-21 16:43:11 +02:00
|
|
|
#define PW_CLIENT_NODE_PROXY_METHOD_NUM 5
|
2017-06-21 12:11:54 +02:00
|
|
|
|
|
|
|
|
/** \ref pw_client_node methods */
|
2017-08-04 16:49:13 +02:00
|
|
|
struct pw_client_node_proxy_methods {
|
|
|
|
|
#define PW_VERSION_CLIENT_NODE_PROXY_METHODS 0
|
2017-07-13 15:21:52 +02:00
|
|
|
uint32_t version;
|
|
|
|
|
|
2017-06-21 12:11:54 +02:00
|
|
|
/** Complete an async operation */
|
|
|
|
|
void (*done) (void *object, int seq, int res);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update the node ports and properties
|
|
|
|
|
*
|
2017-11-07 17:39:31 +01:00
|
|
|
* Update the maximum number of ports and the params of the
|
2017-06-21 12:11:54 +02:00
|
|
|
* client node.
|
|
|
|
|
* \param change_mask bitfield with changed parameters
|
|
|
|
|
* \param max_input_ports new max input ports
|
|
|
|
|
* \param max_output_ports new max output ports
|
2017-11-07 17:39:31 +01:00
|
|
|
* \param params new params
|
2017-06-21 12:11:54 +02:00
|
|
|
*/
|
|
|
|
|
void (*update) (void *object,
|
|
|
|
|
#define PW_CLIENT_NODE_UPDATE_MAX_INPUTS (1 << 0)
|
|
|
|
|
#define PW_CLIENT_NODE_UPDATE_MAX_OUTPUTS (1 << 1)
|
2017-11-07 17:39:31 +01:00
|
|
|
#define PW_CLIENT_NODE_UPDATE_PARAMS (1 << 2)
|
2018-06-07 10:23:41 +02:00
|
|
|
#define PW_CLIENT_NODE_UPDATE_PROPS (1 << 3)
|
2017-06-21 12:11:54 +02:00
|
|
|
uint32_t change_mask,
|
|
|
|
|
uint32_t max_input_ports,
|
|
|
|
|
uint32_t max_output_ports,
|
2017-11-07 17:39:31 +01:00
|
|
|
uint32_t n_params,
|
2018-06-07 10:23:41 +02:00
|
|
|
const struct spa_pod **params,
|
|
|
|
|
const struct spa_dict *props);
|
2017-06-21 12:11:54 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update a node port
|
|
|
|
|
*
|
|
|
|
|
* Update the information of one port of a node.
|
|
|
|
|
* \param direction the direction of the port
|
|
|
|
|
* \param port_id the port id to update
|
|
|
|
|
* \param change_mask a bitfield of changed items
|
|
|
|
|
* \param n_params number of port parameters
|
|
|
|
|
* \param params array of port parameters
|
|
|
|
|
* \param info port information
|
|
|
|
|
*/
|
|
|
|
|
void (*port_update) (void *object,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id,
|
2017-11-07 17:39:31 +01:00
|
|
|
#define PW_CLIENT_NODE_PORT_UPDATE_PARAMS (1 << 0)
|
|
|
|
|
#define PW_CLIENT_NODE_PORT_UPDATE_INFO (1 << 1)
|
2017-06-21 12:11:54 +02:00
|
|
|
uint32_t change_mask,
|
|
|
|
|
uint32_t n_params,
|
2017-11-13 17:57:38 +01:00
|
|
|
const struct spa_pod **params,
|
2017-06-21 12:11:54 +02:00
|
|
|
const struct spa_port_info *info);
|
2017-10-13 16:18:42 +02:00
|
|
|
/**
|
2017-11-07 17:39:31 +01:00
|
|
|
* Activate or deactivate the node
|
2017-10-13 16:18:42 +02:00
|
|
|
*/
|
|
|
|
|
void (*set_active) (void *object, bool active);
|
2017-06-21 12:11:54 +02:00
|
|
|
/**
|
|
|
|
|
* Send an event to the node
|
|
|
|
|
* \param event the event to send
|
|
|
|
|
*/
|
|
|
|
|
void (*event) (void *object, struct spa_event *event);
|
|
|
|
|
};
|
|
|
|
|
|
2017-07-13 15:21:52 +02:00
|
|
|
static inline void
|
|
|
|
|
pw_client_node_proxy_done(struct pw_client_node_proxy *p, int seq, int res)
|
|
|
|
|
{
|
2017-08-04 16:49:13 +02:00
|
|
|
pw_proxy_do((struct pw_proxy*)p, struct pw_client_node_proxy_methods, done, seq, res);
|
2017-07-13 15:21:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
|
pw_client_node_proxy_update(struct pw_client_node_proxy *p,
|
|
|
|
|
uint32_t change_mask,
|
|
|
|
|
uint32_t max_input_ports,
|
|
|
|
|
uint32_t max_output_ports,
|
2017-11-07 17:39:31 +01:00
|
|
|
uint32_t n_params,
|
2018-06-07 10:23:41 +02:00
|
|
|
const struct spa_pod **params,
|
|
|
|
|
const struct spa_dict *props)
|
2017-07-13 15:21:52 +02:00
|
|
|
{
|
2017-08-04 16:49:13 +02:00
|
|
|
pw_proxy_do((struct pw_proxy*)p, struct pw_client_node_proxy_methods, update, change_mask,
|
2017-07-13 15:21:52 +02:00
|
|
|
max_input_ports,
|
|
|
|
|
max_output_ports,
|
2018-06-07 10:23:41 +02:00
|
|
|
n_params, params, props);
|
2017-07-13 15:21:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
|
pw_client_node_proxy_port_update(struct pw_client_node_proxy *p,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id,
|
|
|
|
|
uint32_t change_mask,
|
|
|
|
|
uint32_t n_params,
|
2017-11-13 17:57:38 +01:00
|
|
|
const struct spa_pod **params,
|
2017-07-13 15:21:52 +02:00
|
|
|
const struct spa_port_info *info)
|
|
|
|
|
{
|
2017-08-04 16:49:13 +02:00
|
|
|
pw_proxy_do((struct pw_proxy*)p, struct pw_client_node_proxy_methods, port_update, direction,
|
2017-07-13 15:21:52 +02:00
|
|
|
port_id,
|
|
|
|
|
change_mask,
|
|
|
|
|
n_params,
|
|
|
|
|
params,
|
|
|
|
|
info);
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-13 16:18:42 +02:00
|
|
|
static inline void
|
|
|
|
|
pw_client_node_proxy_set_active(struct pw_client_node_proxy *p, bool active)
|
|
|
|
|
{
|
|
|
|
|
pw_proxy_do((struct pw_proxy*)p, struct pw_client_node_proxy_methods, set_active, active);
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-13 15:21:52 +02:00
|
|
|
static inline void
|
|
|
|
|
pw_client_node_proxy_event(struct pw_client_node_proxy *p, struct spa_event *event)
|
|
|
|
|
{
|
2017-08-04 16:49:13 +02:00
|
|
|
pw_proxy_do((struct pw_proxy*)p, struct pw_client_node_proxy_methods, event, event);
|
2017-07-13 15:21:52 +02:00
|
|
|
}
|
|
|
|
|
|
2017-12-01 17:24:03 +01:00
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_ADD_MEM 0
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_TRANSPORT 1
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_SET_PARAM 2
|
2018-07-12 15:33:07 +02:00
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_SET_IO 3
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_EVENT 4
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_COMMAND 5
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_ADD_PORT 6
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_REMOVE_PORT 7
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_PORT_SET_PARAM 8
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_PORT_USE_BUFFERS 9
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_PORT_COMMAND 10
|
|
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_PORT_SET_IO 11
|
2018-05-11 10:13:37 +02:00
|
|
|
#define PW_CLIENT_NODE_PROXY_EVENT_NUM 12
|
2017-06-21 12:11:54 +02:00
|
|
|
|
|
|
|
|
/** \ref pw_client_node events */
|
2017-08-04 16:49:13 +02:00
|
|
|
struct pw_client_node_proxy_events {
|
|
|
|
|
#define PW_VERSION_CLIENT_NODE_PROXY_EVENTS 0
|
2017-07-13 15:21:52 +02:00
|
|
|
uint32_t version;
|
2017-12-01 17:24:03 +01:00
|
|
|
/**
|
|
|
|
|
* Memory was added to a node
|
|
|
|
|
*
|
2018-03-01 17:39:17 +01:00
|
|
|
* Memory is given to a node as an fd in \a memfd of a certain
|
|
|
|
|
* memory \a type.
|
|
|
|
|
*
|
|
|
|
|
* Further references to this fd will be made with the per memory
|
|
|
|
|
* unique identifier \a mem_id.
|
|
|
|
|
*
|
|
|
|
|
* Buffers or controls will reference the memory by \a mem_id and
|
|
|
|
|
* mapping the specified area will give access to the memory.
|
|
|
|
|
*
|
2017-12-01 17:24:03 +01:00
|
|
|
* \param mem_id the id of the memory
|
|
|
|
|
* \param type the memory type
|
|
|
|
|
* \param memfd the fd of the memory
|
|
|
|
|
* \param flags flags for the \a memfd
|
|
|
|
|
*/
|
|
|
|
|
void (*add_mem) (void *object,
|
|
|
|
|
uint32_t mem_id,
|
|
|
|
|
uint32_t type,
|
|
|
|
|
int memfd,
|
|
|
|
|
uint32_t flags);
|
2017-06-27 13:24:37 +02:00
|
|
|
/**
|
|
|
|
|
* Notify of a new transport area
|
|
|
|
|
*
|
2018-04-12 10:12:40 +02:00
|
|
|
* The transport area is used to signal the client and the server.
|
2017-06-27 13:24:37 +02:00
|
|
|
*
|
|
|
|
|
* \param node_id the node id created for this client node
|
|
|
|
|
* \param readfd fd for signal data can be read
|
|
|
|
|
* \param writefd fd for signal data can be written
|
|
|
|
|
*/
|
|
|
|
|
void (*transport) (void *object,
|
|
|
|
|
uint32_t node_id,
|
|
|
|
|
int readfd,
|
2018-04-12 10:12:40 +02:00
|
|
|
int writefd);
|
2017-06-21 12:11:54 +02:00
|
|
|
/**
|
|
|
|
|
* Notify of a property change
|
|
|
|
|
*
|
|
|
|
|
* When the server configures the properties on the node
|
|
|
|
|
* this event is sent
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
2017-11-07 17:39:31 +01:00
|
|
|
* \param id the id of the parameter
|
|
|
|
|
* \param flags parameter flags
|
|
|
|
|
* \param param the param to set
|
2017-06-21 12:11:54 +02:00
|
|
|
*/
|
2017-11-07 17:39:31 +01:00
|
|
|
void (*set_param) (void *object, uint32_t seq,
|
|
|
|
|
uint32_t id, uint32_t flags,
|
2017-11-13 17:57:38 +01:00
|
|
|
const struct spa_pod *param);
|
2018-07-12 15:33:07 +02:00
|
|
|
/**
|
|
|
|
|
* Configure an IO area for the client
|
|
|
|
|
*
|
|
|
|
|
* IO areas are identified with an id and are used to
|
|
|
|
|
* exchange state between client and server
|
|
|
|
|
*
|
|
|
|
|
* \param id the id of the io area
|
|
|
|
|
* \param mem_id the id of the memory to use
|
|
|
|
|
* \param offset offset of io area in memory
|
|
|
|
|
* \param size size of the io area
|
|
|
|
|
*/
|
|
|
|
|
void (*set_io) (void *object,
|
|
|
|
|
uint32_t id,
|
|
|
|
|
uint32_t mem_id,
|
|
|
|
|
uint32_t offset,
|
|
|
|
|
uint32_t size);
|
2017-06-21 12:11:54 +02:00
|
|
|
/**
|
|
|
|
|
* Receive an event from the client node
|
|
|
|
|
* \param event the received event */
|
|
|
|
|
void (*event) (void *object, const struct spa_event *event);
|
2017-11-07 17:39:31 +01:00
|
|
|
/**
|
|
|
|
|
* Notify of a new node command
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
|
|
|
|
* \param command the command
|
|
|
|
|
*/
|
|
|
|
|
void (*command) (void *object, uint32_t seq, const struct spa_command *command);
|
2017-06-21 12:11:54 +02:00
|
|
|
/**
|
|
|
|
|
* A new port was added to the node
|
|
|
|
|
*
|
|
|
|
|
* The server can at any time add a port to the node when there
|
|
|
|
|
* are free ports available.
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
|
|
|
|
* \param direction the direction of the port
|
|
|
|
|
* \param port_id the new port id
|
|
|
|
|
*/
|
|
|
|
|
void (*add_port) (void *object,
|
|
|
|
|
uint32_t seq,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id);
|
|
|
|
|
/**
|
|
|
|
|
* A port was removed from the node
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
|
|
|
|
* \param direction a port direction
|
|
|
|
|
* \param port_id the remove port id
|
|
|
|
|
*/
|
|
|
|
|
void (*remove_port) (void *object,
|
|
|
|
|
uint32_t seq,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id);
|
|
|
|
|
/**
|
|
|
|
|
* A parameter was configured on the port
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
|
|
|
|
* \param direction a port direction
|
|
|
|
|
* \param port_id the port id
|
2017-11-07 17:39:31 +01:00
|
|
|
* \param id the id of the parameter
|
|
|
|
|
* \param flags flags used when setting the param
|
2017-06-21 12:11:54 +02:00
|
|
|
* \param param the new param
|
|
|
|
|
*/
|
2017-11-07 17:39:31 +01:00
|
|
|
void (*port_set_param) (void *object,
|
|
|
|
|
uint32_t seq,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id,
|
|
|
|
|
uint32_t id, uint32_t flags,
|
2017-11-13 17:57:38 +01:00
|
|
|
const struct spa_pod *param);
|
2017-06-21 12:11:54 +02:00
|
|
|
/**
|
|
|
|
|
* Notify the port of buffers
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
|
|
|
|
* \param direction a port direction
|
|
|
|
|
* \param port_id the port id
|
2018-03-01 17:39:17 +01:00
|
|
|
* \param mix_id the mixer port id
|
2017-06-21 12:11:54 +02:00
|
|
|
* \param n_buffer the number of buffers
|
|
|
|
|
* \param buffers and array of buffer descriptions
|
|
|
|
|
*/
|
2017-11-07 17:39:31 +01:00
|
|
|
void (*port_use_buffers) (void *object,
|
|
|
|
|
uint32_t seq,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id,
|
2018-03-01 17:39:17 +01:00
|
|
|
uint32_t mix_id,
|
2017-11-07 17:39:31 +01:00
|
|
|
uint32_t n_buffers,
|
|
|
|
|
struct pw_client_node_buffer *buffers);
|
2017-06-21 12:11:54 +02:00
|
|
|
/**
|
|
|
|
|
* Notify of a new port command
|
|
|
|
|
*
|
|
|
|
|
* \param direction a port direction
|
|
|
|
|
* \param port_id the port id
|
|
|
|
|
* \param command the command
|
|
|
|
|
*/
|
|
|
|
|
void (*port_command) (void *object,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id,
|
|
|
|
|
const struct spa_command *command);
|
2017-11-30 16:36:29 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Configure the io area with \a id of \a port_id.
|
|
|
|
|
*
|
|
|
|
|
* \param seq a sequence number
|
|
|
|
|
* \param direction the direction of the port
|
|
|
|
|
* \param port_id the port id
|
2018-03-01 17:39:17 +01:00
|
|
|
* \param mix_id the mixer port id
|
2017-11-30 16:36:29 +01:00
|
|
|
* \param id the id of the io area to set
|
|
|
|
|
* \param mem_id the id of the memory to use
|
|
|
|
|
* \param offset offset of io area in memory
|
|
|
|
|
* \param size size of the io area
|
|
|
|
|
*/
|
|
|
|
|
void (*port_set_io) (void *object,
|
|
|
|
|
uint32_t seq,
|
|
|
|
|
enum spa_direction direction,
|
|
|
|
|
uint32_t port_id,
|
2018-03-01 17:39:17 +01:00
|
|
|
uint32_t mix_id,
|
2017-11-30 16:36:29 +01:00
|
|
|
uint32_t id,
|
|
|
|
|
uint32_t mem_id,
|
|
|
|
|
uint32_t offset,
|
|
|
|
|
uint32_t size);
|
2017-06-21 12:11:54 +02:00
|
|
|
};
|
|
|
|
|
|
2017-07-13 15:21:52 +02:00
|
|
|
static inline void
|
|
|
|
|
pw_client_node_proxy_add_listener(struct pw_client_node_proxy *p,
|
2017-08-08 16:56:29 +02:00
|
|
|
struct spa_hook *listener,
|
2017-08-04 16:49:13 +02:00
|
|
|
const struct pw_client_node_proxy_events *events,
|
2017-08-04 10:18:54 +02:00
|
|
|
void *data)
|
2017-07-13 15:21:52 +02:00
|
|
|
{
|
2017-08-04 16:49:13 +02:00
|
|
|
pw_proxy_add_proxy_listener((struct pw_proxy*)p, listener, events, data);
|
2017-07-13 15:21:52 +02:00
|
|
|
}
|
|
|
|
|
|
2017-12-01 17:24:03 +01:00
|
|
|
#define pw_client_node_resource_add_mem(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,add_mem,__VA_ARGS__)
|
2017-11-07 17:39:31 +01:00
|
|
|
#define pw_client_node_resource_transport(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,transport,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_set_param(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,set_param,__VA_ARGS__)
|
2018-07-12 15:33:07 +02:00
|
|
|
#define pw_client_node_resource_set_io(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,set_io,__VA_ARGS__)
|
2017-11-07 17:39:31 +01:00
|
|
|
#define pw_client_node_resource_event(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,event,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_command(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,command,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_add_port(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,add_port,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_remove_port(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,remove_port,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_port_set_param(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,port_set_param,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_port_use_buffers(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,port_use_buffers,__VA_ARGS__)
|
|
|
|
|
#define pw_client_node_resource_port_command(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,port_command,__VA_ARGS__)
|
2017-11-30 16:36:29 +01:00
|
|
|
#define pw_client_node_resource_port_set_io(r,...) \
|
|
|
|
|
pw_resource_notify(r,struct pw_client_node_proxy_events,port_set_io,__VA_ARGS__)
|
2017-06-21 12:11:54 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* __PIPEWIRE_EXT_CLIENT_NODE_H__ */
|