mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-11-05 16:26:16 +00:00
node: make enum for TYPE_EVENT_Node properties
This commit is contained in:
parent
100c12460f
commit
1cacb64b19
2 changed files with 6 additions and 1 deletions
|
@ -46,6 +46,11 @@ enum spa_node_event {
|
|||
#define SPA_NODE_EVENT_ID(ev) SPA_EVENT_ID(ev, SPA_TYPE_EVENT_Node)
|
||||
#define SPA_NODE_EVENT_INIT(id) SPA_EVENT_INIT(SPA_TYPE_EVENT_Node, id)
|
||||
|
||||
/* properties for SPA_TYPE_EVENT_Node */
|
||||
enum spa_event_node {
|
||||
SPA_EVENT_NODE_START,
|
||||
};
|
||||
|
||||
/**
|
||||
* \}
|
||||
*/
|
||||
|
|
|
@ -68,7 +68,7 @@ static const struct spa_type_info spa_type_node_event_id[] = {
|
|||
};
|
||||
|
||||
static const struct spa_type_info spa_type_node_event[] = {
|
||||
{ 0, SPA_TYPE_Id, SPA_TYPE_INFO_NODE_EVENT_BASE, spa_type_node_event_id },
|
||||
{ SPA_EVENT_NODE_START, SPA_TYPE_Id, SPA_TYPE_INFO_NODE_EVENT_BASE, spa_type_node_event_id },
|
||||
{ 0, 0, NULL, NULL },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue