mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
buffer: make data and meta types dynamic
Use dynamic types for the data and meta types. Move the meta into a separate header. Remove port state, we can keep track of that ourselves. Add size to MetaDataEnable params
This commit is contained in:
parent
ed273ec465
commit
b51d3e4862
36 changed files with 543 additions and 553 deletions
|
|
@ -37,6 +37,15 @@ typedef struct _PinosPort PinosPort;
|
|||
#include <pinos/server/core.h>
|
||||
#include <pinos/server/link.h>
|
||||
|
||||
typedef enum {
|
||||
PINOS_PORT_STATE_ERROR = -1,
|
||||
PINOS_PORT_STATE_INIT = 0,
|
||||
PINOS_PORT_STATE_CONFIGURE = 1,
|
||||
PINOS_PORT_STATE_READY = 2,
|
||||
PINOS_PORT_STATE_PAUSED = 3,
|
||||
PINOS_PORT_STATE_STREAMING = 4,
|
||||
} PinosPortState;
|
||||
|
||||
struct _PinosPort {
|
||||
SpaList link;
|
||||
|
||||
|
|
@ -45,7 +54,7 @@ struct _PinosPort {
|
|||
PinosNode *node;
|
||||
PinosDirection direction;
|
||||
uint32_t port_id;
|
||||
uint32_t state;
|
||||
PinosPortState state;
|
||||
SpaPortIO io;
|
||||
|
||||
bool allocated;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue