node: pass struct to info callback to make it more extensible

This commit is contained in:
Wim Taymans 2019-02-13 11:44:58 +01:00
parent bb2b15a5fb
commit 04f1046113
9 changed files with 78 additions and 18 deletions

View file

@ -41,6 +41,21 @@ struct spa_node;
#include <spa/node/event.h>
#include <spa/node/command.h>
/**
* Node information structure
*
* Contains the basic node information.
*/
struct spa_node_info {
#define SPA_VERSION_NODE_INFO 0
uint32_t version;
#define SPA_NODE_CHANGE_MASK_PROPS (1<<0)
uint64_t change_mask;
struct spa_dict *props;
};
#define SPA_NODE_INFO_INIT() (struct spa_node_info) { SPA_VERSION_NODE_INFO, }
/**
* Port information structure
*
@ -72,7 +87,7 @@ struct spa_node_callbacks {
uint32_t version; /**< version of this structure */
/** Emited when info changes */
void (*info) (void *data, const struct spa_dict *info);
void (*info) (void *data, const struct spa_node_info *info);
/** Emited when an async operation completed.
*