mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
node: pass struct to info callback to make it more extensible
This commit is contained in:
parent
bb2b15a5fb
commit
04f1046113
9 changed files with 78 additions and 18 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue