node: make enum for TYPE_EVENT_Node properties

This commit is contained in:
Wim Taymans 2021-10-19 15:18:01 +02:00
parent 100c12460f
commit 1cacb64b19
2 changed files with 6 additions and 1 deletions

View file

@ -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,
};
/**
* \}
*/

View file

@ -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 },
};