PipeWire  0.3.17
port.h File Reference
Include dependency graph for port.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pw_port_info
 
struct  pw_port_events
 Port events. More...
 
struct  pw_port_methods
 Port methods. More...
 

Macros

#define PW_TYPE_INTERFACE_Port   PW_TYPE_INFO_INTERFACE_BASE "Port"
 
#define PW_VERSION_PORT   3
 
#define pw_direction   spa_direction
 
#define PW_DIRECTION_INPUT   SPA_DIRECTION_INPUT
 
#define PW_DIRECTION_OUTPUT   SPA_DIRECTION_OUTPUT
 
#define PW_PORT_CHANGE_MASK_PROPS   (1 << 0)
 
#define PW_PORT_CHANGE_MASK_PARAMS   (1 << 1)
 
#define PW_PORT_CHANGE_MASK_ALL   ((1 << 2)-1)
 
#define PW_PORT_EVENT_INFO   0
 
#define PW_PORT_EVENT_PARAM   1
 
#define PW_PORT_EVENT_NUM   2
 
#define PW_VERSION_PORT_EVENTS   0
 
#define PW_PORT_METHOD_ADD_LISTENER   0
 
#define PW_PORT_METHOD_SUBSCRIBE_PARAMS   1
 
#define PW_PORT_METHOD_ENUM_PARAMS   2
 
#define PW_PORT_METHOD_NUM   3
 
#define PW_VERSION_PORT_METHODS   0
 
#define pw_port_method(o, method, version, ...)
 
#define pw_port_add_listener(c, ...)   pw_port_method(c,add_listener,0,__VA_ARGS__)
 
#define pw_port_subscribe_params(c, ...)   pw_port_method(c,subscribe_params,0,__VA_ARGS__)
 
#define pw_port_enum_params(c, ...)   pw_port_method(c,enum_params,0,__VA_ARGS__)
 

Functions

struct pw_port_infopw_port_info_update (struct pw_port_info *info, const struct pw_port_info *update)
 
void pw_port_info_free (struct pw_port_info *info)
 

Macro Definition Documentation

#define pw_direction   spa_direction
#define PW_DIRECTION_OUTPUT   SPA_DIRECTION_OUTPUT
#define pw_port_add_listener (   c,
  ... 
)    pw_port_method(c,add_listener,0,__VA_ARGS__)
#define PW_PORT_CHANGE_MASK_ALL   ((1 << 2)-1)
#define PW_PORT_CHANGE_MASK_PARAMS   (1 << 1)

Referenced by pw_port_info_update().

#define PW_PORT_CHANGE_MASK_PROPS   (1 << 0)
#define pw_port_enum_params (   c,
  ... 
)    pw_port_method(c,enum_params,0,__VA_ARGS__)
#define PW_PORT_EVENT_INFO   0
#define PW_PORT_EVENT_NUM   2
#define PW_PORT_EVENT_PARAM   1
#define pw_port_method (   o,
  method,
  version,
  ... 
)
Value:
({ \
int _res = -ENOTSUP; \
spa_interface_call_res((struct spa_interface*)o, \
struct pw_port_methods, _res, \
method, version, ##__VA_ARGS__); \
_res; \
})
Port methods.
Definition: port.h:116
#define PW_PORT_METHOD_ADD_LISTENER   0
#define PW_PORT_METHOD_ENUM_PARAMS   2
#define PW_PORT_METHOD_NUM   3
#define PW_PORT_METHOD_SUBSCRIBE_PARAMS   1
#define pw_port_subscribe_params (   c,
  ... 
)    pw_port_method(c,subscribe_params,0,__VA_ARGS__)
#define PW_TYPE_INTERFACE_Port   PW_TYPE_INFO_INTERFACE_BASE "Port"

Referenced by pw_impl_port_register().

#define PW_VERSION_PORT   3

Referenced by pw_impl_port_register().

#define PW_VERSION_PORT_EVENTS   0
#define PW_VERSION_PORT_METHODS   0

Function Documentation

void pw_port_info_free ( struct pw_port_info info)