node: add an event to enumerate the peer port params

This can be used by nodes to filter or proxy the peer params.

Add test for new peer_enum_params event
This commit is contained in:
Wim Taymans 2024-04-11 17:19:12 +02:00
parent af6638251d
commit 67aafec8ab
3 changed files with 28 additions and 4 deletions

View file

@ -113,6 +113,7 @@ static inline int spa_node_port_enum_params_sync(struct spa_node *node,
#define spa_node_emit_port_info(hooks,...) spa_node_emit(hooks,port_info, 0, __VA_ARGS__)
#define spa_node_emit_result(hooks,...) spa_node_emit(hooks,result, 0, __VA_ARGS__)
#define spa_node_emit_event(hooks,...) spa_node_emit(hooks,event, 0, __VA_ARGS__)
#define spa_node_emit_peer_enum_params(hooks,...) spa_node_emit(hooks,peer_enum_params,1, __VA_ARGS__)
#define spa_node_call(callbacks,method,version,...) \