mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
Use types with known sizes where we can, easier to serialize
Add iterator for POD and use it to implement some demarshalling.
This commit is contained in:
parent
23d09d5b60
commit
f92b68c3c3
77 changed files with 839 additions and 695 deletions
|
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
#include <spa/format.h>
|
||||
#include <spa/pod-builder.h>
|
||||
|
||||
static inline off_t
|
||||
static inline uint32_t
|
||||
spa_pod_builder_push_format (SpaPODBuilder *builder,
|
||||
SpaPODFrame *frame,
|
||||
uint32_t media_type,
|
||||
|
|
@ -43,7 +43,7 @@ spa_pod_builder_push_format (SpaPODBuilder *builder,
|
|||
spa_pod_builder_raw (builder, &p, sizeof(p), false));
|
||||
}
|
||||
|
||||
static inline off_t
|
||||
static inline uint32_t
|
||||
spa_pod_builder_format (SpaPODBuilder *builder,
|
||||
uint32_t media_type,
|
||||
uint32_t media_subtype,
|
||||
|
|
@ -51,7 +51,7 @@ spa_pod_builder_format (SpaPODBuilder *builder,
|
|||
{
|
||||
SpaPODFrame f;
|
||||
va_list args;
|
||||
off_t off;
|
||||
uint32_t off;
|
||||
|
||||
off = spa_pod_builder_push_format (builder, &f, media_type, media_subtype);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue