PipeWire 1.6.8

Loading...
Searching...
No Matches
builder.h File Reference
SPA » POD

spa/pod/builder.h More...

Go to the source code of this file.

## Data Structures
struct | spa_pod_builder_state
struct | spa_pod_builder_callbacks
struct | spa_pod_builder

## Macros
#define | SPA_API_POD_BUILDER static inline
#define | SPA_POD_BUILDER_FLAG_BODY (1<<0)
#define | SPA_POD_BUILDER_FLAG_FIRST (1<<1)
#define | SPA_VERSION_POD_BUILDER_CALLBACKS 0
#define | SPA_POD_BUILDER_INIT(buffer, size)
#define | SPA_POD_INIT(size, type)
#define | SPA_POD_INIT_None()
#define | SPA_POD_INIT_Bool(val)
#define | SPA_POD_INIT_Id(val)
#define | SPA_POD_INIT_Int(val)
#define | SPA_POD_INIT_Long(val)
#define | SPA_POD_INIT_Float(val)
#define | SPA_POD_INIT_Double(val)
#define | SPA_POD_INIT_String(len)
#define | SPA_POD_INIT_Bytes(len)
#define | SPA_POD_INIT_Pointer(type, value)
#define | SPA_POD_INIT_Fd(fd)
#define | SPA_POD_INIT_Rectangle(val)
#define | SPA_POD_INIT_Fraction(val)
#define | SPA_POD_INIT_CHOICE_BODY(type, flags, child_size, child_type)
#define | SPA_POD_INIT_Choice(type, ctype, child_type, n_vals, ...)
#define | SPA_POD_INIT_Struct(size)
#define | SPA_POD_INIT_Object(size, type, id, ...)
#define | SPA_POD_INIT_Prop(key, flags, size, type)
#define | SPA_POD_INIT_Sequence(size, unit)
#define | SPA_POD_BUILDER_COLLECT(builder, type, args)
#define | spa_pod_builder_add_object(b, type, id, ...)
#define | spa_pod_builder_add_struct(b, ...)
#define | spa_pod_builder_add_sequence(b, unit, ...)

## Functions
SPA_API_POD_BUILDER void | spa_pod_builder_get_state (struct spa_pod_builder *builder, struct spa_pod_builder_state *state)
SPA_API_POD_BUILDER bool | spa_pod_builder_corrupted (const struct spa_pod_builder *builder)
SPA_API_POD_BUILDER void | spa_pod_builder_set_callbacks (struct spa_pod_builder *builder, const struct spa_pod_builder_callbacks *callbacks, void *data)
SPA_API_POD_BUILDER void | spa_pod_builder_reset (struct spa_pod_builder *builder, struct spa_pod_builder_state *state)
SPA_API_POD_BUILDER void | spa_pod_builder_init (struct spa_pod_builder *builder, void *data, uint32_t size)
SPA_API_POD_BUILDER struct spa_pod * | spa_pod_builder_deref_fallback (struct spa_pod_builder *builder, uint32_t offset, struct spa_pod *fallback)
SPA_API_POD_BUILDER struct spa_pod * | spa_pod_builder_deref (struct spa_pod_builder *builder, uint32_t offset)
SPA_API_POD_BUILDER struct spa_pod * | spa_pod_builder_frame (struct spa_pod_builder *builder, struct spa_pod_frame *frame)
SPA_API_POD_BUILDER void | spa_pod_builder_push (struct spa_pod_builder *builder, struct spa_pod_frame *frame, const struct spa_pod *pod, uint32_t offset)
SPA_API_POD_BUILDER int | spa_pod_builder_raw (struct spa_pod_builder *builder, const void *data, uint32_t size)
SPA_API_POD_BUILDER void | spa_pod_builder_remove (struct spa_pod_builder *builder, uint32_t size)
SPA_API_POD_BUILDER int | spa_pod_builder_pad (struct spa_pod_builder *builder, uint32_t size)
SPA_API_POD_BUILDER int | spa_pod_builder_raw_padded (struct spa_pod_builder *builder, const void *data, uint32_t size)
SPA_API_POD_BUILDER void * | spa_pod_builder_pop (struct spa_pod_builder *builder, struct spa_pod_frame *frame)
SPA_API_POD_BUILDER int | spa_pod_builder_primitive_body (struct spa_pod_builder *builder, const struct spa_pod *p, const void *body, uint32_t body_size, const char *suffix, uint32_t suffix_size)
SPA_API_POD_BUILDER int | spa_pod_builder_primitive (struct spa_pod_builder *builder, const struct spa_pod *p)
SPA_API_POD_BUILDER int | spa_pod_builder_none (struct spa_pod_builder *builder)
SPA_API_POD_BUILDER int | spa_pod_builder_child (struct spa_pod_builder *builder, uint32_t size, uint32_t type)
SPA_API_POD_BUILDER int | spa_pod_builder_bool (struct spa_pod_builder *builder, bool val)
SPA_API_POD_BUILDER int | spa_pod_builder_id (struct spa_pod_builder *builder, uint32_t val)
SPA_API_POD_BUILDER int | spa_pod_builder_int (struct spa_pod_builder *builder, int32_t val)
SPA_API_POD_BUILDER int | spa_pod_builder_long (struct spa_pod_builder *builder, int64_t val)
SPA_API_POD_BUILDER int | spa_pod_builder_float (struct spa_pod_builder *builder, float val)
SPA_API_POD_BUILDER int | spa_pod_builder_double (struct spa_pod_builder *builder, double val)
SPA_API_POD_BUILDER int | spa_pod_builder_write_string (struct spa_pod_builder *builder, const char *str, uint32_t len)
SPA_API_POD_BUILDER int | spa_pod_builder_string_len (struct spa_pod_builder *builder, const char *str, uint32_t len)
SPA_API_POD_BUILDER int | spa_pod_builder_string (struct spa_pod_builder *builder, const char *str)
SPA_API_POD_BUILDER int | spa_pod_builder_bytes (struct spa_pod_builder *builder, const void *bytes, uint32_t len)
SPA_API_POD_BUILDER void * | spa_pod_builder_reserve_bytes (struct spa_pod_builder *builder, uint32_t len)
SPA_API_POD_BUILDER int | spa_pod_builder_pointer (struct spa_pod_builder *builder, uint32_t type, const void *val)
SPA_API_POD_BUILDER int | spa_pod_builder_fd (struct spa_pod_builder *builder, int64_t fd)
SPA_API_POD_BUILDER int | spa_pod_builder_rectangle (struct spa_pod_builder *builder, uint32_t width, uint32_t height)
SPA_API_POD_BUILDER int | spa_pod_builder_fraction (struct spa_pod_builder *builder, uint32_t num, uint32_t denom)
SPA_API_POD_BUILDER int | spa_pod_builder_push_array (struct spa_pod_builder *builder, struct spa_pod_frame *frame)
SPA_API_POD_BUILDER int | spa_pod_builder_array (struct spa_pod_builder *builder, uint32_t child_size, uint32_t child_type, uint32_t n_elems, const void *elems)
SPA_API_POD_BUILDER int | spa_pod_builder_push_choice (struct spa_pod_builder *builder, struct spa_pod_frame *frame, uint32_t type, uint32_t flags)
SPA_API_POD_BUILDER int | spa_pod_builder_push_struct (struct spa_pod_builder *builder, struct spa_pod_frame *frame)
SPA_API_POD_BUILDER int | spa_pod_builder_push_object (struct spa_pod_builder *builder, struct spa_pod_frame *frame, uint32_t type, uint32_t id)
SPA_API_POD_BUILDER int | spa_pod_builder_prop (struct spa_pod_builder *builder, uint32_t key, uint32_t flags)
SPA_API_POD_BUILDER int | spa_pod_builder_push_sequence (struct spa_pod_builder *builder, struct spa_pod_frame *frame, uint32_t unit)
SPA_API_POD_BUILDER int | spa_pod_builder_control (struct spa_pod_builder *builder, uint32_t offset, uint32_t type)
SPA_API_POD_BUILDER uint32_t | spa_choice_from_id_flags (char id, uint32_t *flags)
SPA_API_POD_BUILDER uint32_t | spa_choice_from_id (char id)
SPA_API_POD_BUILDER int | spa_pod_builder_addv (struct spa_pod_builder *builder, va_list args)
SPA_API_POD_BUILDER int | spa_pod_builder_add (struct spa_pod_builder *builder,...)
SPA_API_POD_BUILDER struct spa_pod * | spa_pod_copy (const struct spa_pod *pod)
| Copy a pod structure.

## Detailed Description

spa/pod/builder.h