mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
add continuation packet
Add continuation type packet that would make it possible to send commands using a piece of shared memory.
This commit is contained in:
parent
8d1ad2ea63
commit
fd276b4820
2 changed files with 31 additions and 13 deletions
|
|
@ -56,6 +56,8 @@ gpointer pinos_buffer_steal (PinosBuffer *buffer,
|
|||
/**
|
||||
* PinosPacketType:
|
||||
* @PINOS_PACKET_TYPE_INVALID: invalid packet type, ignore
|
||||
* @PINOS_PACKET_TYPE_CONTINUATION: continuation packet, used internally to send
|
||||
* commands using a shared memory region.
|
||||
* @PINOS_PACKET_TYPE_HEADER: common packet header
|
||||
* @PINOS_PACKET_TYPE_FD_PAYLOAD: packet contains fd-payload. An fd-payload contains
|
||||
* the media data as a file descriptor
|
||||
|
|
@ -69,11 +71,12 @@ gpointer pinos_buffer_steal (PinosBuffer *buffer,
|
|||
typedef enum {
|
||||
PINOS_PACKET_TYPE_INVALID = 0,
|
||||
|
||||
PINOS_PACKET_TYPE_HEADER = 1,
|
||||
PINOS_PACKET_TYPE_FD_PAYLOAD = 2,
|
||||
PINOS_PACKET_TYPE_RELEASE_FD_PAYLOAD = 3,
|
||||
PINOS_PACKET_TYPE_FORMAT_CHANGE = 4,
|
||||
PINOS_PACKET_TYPE_PROPERTY_CHANGE = 5,
|
||||
PINOS_PACKET_TYPE_CONTINUATION = 1,
|
||||
PINOS_PACKET_TYPE_HEADER = 2,
|
||||
PINOS_PACKET_TYPE_FD_PAYLOAD = 3,
|
||||
PINOS_PACKET_TYPE_RELEASE_FD_PAYLOAD = 4,
|
||||
PINOS_PACKET_TYPE_FORMAT_CHANGE = 5,
|
||||
PINOS_PACKET_TYPE_PROPERTY_CHANGE = 6,
|
||||
} PinosPacketType;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue