Go to the source code of this file.
|
#define | PW_TYPE_INTERFACE_Node PW_TYPE_INFO_INTERFACE_BASE "Node" |
|
#define | PW_VERSION_NODE 3 |
|
#define | PW_NODE_CHANGE_MASK_INPUT_PORTS (1 << 0) |
|
#define | PW_NODE_CHANGE_MASK_OUTPUT_PORTS (1 << 1) |
|
#define | PW_NODE_CHANGE_MASK_STATE (1 << 2) |
|
#define | PW_NODE_CHANGE_MASK_PROPS (1 << 3) |
|
#define | PW_NODE_CHANGE_MASK_PARAMS (1 << 4) |
|
#define | PW_NODE_CHANGE_MASK_ALL ((1 << 5)-1) |
|
#define | PW_NODE_EVENT_INFO 0 |
|
#define | PW_NODE_EVENT_PARAM 1 |
|
#define | PW_NODE_EVENT_NUM 2 |
|
#define | PW_VERSION_NODE_EVENTS 0 |
|
#define | PW_NODE_METHOD_ADD_LISTENER 0 |
|
#define | PW_NODE_METHOD_SUBSCRIBE_PARAMS 1 |
|
#define | PW_NODE_METHOD_ENUM_PARAMS 2 |
|
#define | PW_NODE_METHOD_SET_PARAM 3 |
|
#define | PW_NODE_METHOD_SEND_COMMAND 4 |
|
#define | PW_NODE_METHOD_NUM 5 |
|
#define | PW_VERSION_NODE_METHODS 0 |
|
#define | pw_node_method(o, method, version, ...) |
|
#define | pw_node_add_listener(c, ...) pw_node_method(c,add_listener,0,__VA_ARGS__) |
| Node. More...
|
|
#define | pw_node_subscribe_params(c, ...) pw_node_method(c,subscribe_params,0,__VA_ARGS__) |
|
#define | pw_node_enum_params(c, ...) pw_node_method(c,enum_params,0,__VA_ARGS__) |
|
#define | pw_node_set_param(c, ...) pw_node_method(c,set_param,0,__VA_ARGS__) |
|
#define | pw_node_send_command(c, ...) pw_node_method(c,send_command,0,__VA_ARGS__) |
|
#define pw_node_add_listener |
( |
|
c, |
|
|
|
... |
|
) |
| pw_node_method(c,add_listener,0,__VA_ARGS__) |
#define PW_NODE_CHANGE_MASK_ALL ((1 << 5)-1) |
#define PW_NODE_CHANGE_MASK_INPUT_PORTS (1 << 0) |
#define PW_NODE_CHANGE_MASK_OUTPUT_PORTS (1 << 1) |
#define PW_NODE_CHANGE_MASK_PARAMS (1 << 4) |
#define PW_NODE_CHANGE_MASK_PROPS (1 << 3) |
#define PW_NODE_CHANGE_MASK_STATE (1 << 2) |
#define pw_node_enum_params |
( |
|
c, |
|
|
|
... |
|
) |
| pw_node_method(c,enum_params,0,__VA_ARGS__) |
#define PW_NODE_EVENT_INFO 0 |
#define PW_NODE_EVENT_NUM 2 |
#define PW_NODE_EVENT_PARAM 1 |
#define pw_node_method |
( |
|
o, |
|
|
|
method, |
|
|
|
version, |
|
|
|
... |
|
) |
| |
Value:({ \
int _res = -ENOTSUP; \
spa_interface_call_res((struct spa_interface*)o, \
method, version, ##__VA_ARGS__); \
_res; \
})
Node methods.
Definition: node.h:127
#define PW_NODE_METHOD_ADD_LISTENER 0 |
#define PW_NODE_METHOD_ENUM_PARAMS 2 |
#define PW_NODE_METHOD_NUM 5 |
#define PW_NODE_METHOD_SEND_COMMAND 4 |
#define PW_NODE_METHOD_SET_PARAM 3 |
#define PW_NODE_METHOD_SUBSCRIBE_PARAMS 1 |
#define pw_node_send_command |
( |
|
c, |
|
|
|
... |
|
) |
| pw_node_method(c,send_command,0,__VA_ARGS__) |
#define pw_node_set_param |
( |
|
c, |
|
|
|
... |
|
) |
| pw_node_method(c,set_param,0,__VA_ARGS__) |
#define pw_node_subscribe_params |
( |
|
c, |
|
|
|
... |
|
) |
| pw_node_method(c,subscribe_params,0,__VA_ARGS__) |
#define PW_VERSION_NODE 3 |
#define PW_VERSION_NODE_EVENTS 0 |
#define PW_VERSION_NODE_METHODS 0 |
The different node states.
Enumerator |
---|
PW_NODE_STATE_ERROR |
error state
|
PW_NODE_STATE_CREATING |
the node is being created
|
PW_NODE_STATE_SUSPENDED |
the node is suspended, the device might be closed
|
PW_NODE_STATE_IDLE |
the node is running but there is no active port
|
PW_NODE_STATE_RUNNING |
the node is running
|
References pw_node_info::change_mask, pw_node_info::error, pw_node_info::id, pw_node_info::max_input_ports, pw_node_info::max_output_ports, pw_node_info::n_input_ports, pw_node_info::n_output_ports, pw_node_info::n_params, pw_node_info::params, pw_node_info::props, PW_NODE_CHANGE_MASK_INPUT_PORTS, PW_NODE_CHANGE_MASK_OUTPUT_PORTS, PW_NODE_CHANGE_MASK_PARAMS, PW_NODE_CHANGE_MASK_PROPS, PW_NODE_CHANGE_MASK_STATE, and pw_node_info::state.