mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
Cleanups
spa_serialize -> pinos_serialize Improve PinosPort, move links to the object and make it part of PinosNode Work on improving signals to react to changes in the graph Error when a client-node becomes unlinked, like when removing a camera.
This commit is contained in:
parent
70fb53cdc6
commit
98dbb6424d
13 changed files with 350 additions and 339 deletions
|
|
@ -17,39 +17,37 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef __SPA_SERIALIZE_H__
|
||||
#define __SPA_SERIALIZE_H__
|
||||
#ifndef __PINOS_SERIALIZE_H__
|
||||
#define __PINOS_SERIALIZE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#include <spa/include/spa/buffer.h>
|
||||
#include <spa/include/spa/format.h>
|
||||
#include <spa/include/spa/props.h>
|
||||
#include <spa/include/spa/port.h>
|
||||
|
||||
size_t spa_serialize_buffer_get_size (const SpaBuffer *buffer);
|
||||
size_t spa_serialize_buffer_serialize (void *dest, const SpaBuffer *buffer);
|
||||
SpaBuffer * spa_serialize_buffer_deserialize (void *src, off_t offset);
|
||||
size_t pinos_serialize_buffer_get_size (const SpaBuffer *buffer);
|
||||
size_t pinos_serialize_buffer_serialize (void *dest, const SpaBuffer *buffer);
|
||||
SpaBuffer * pinos_serialize_buffer_deserialize (void *src, off_t offset);
|
||||
|
||||
size_t spa_serialize_format_get_size (const SpaFormat *format);
|
||||
size_t spa_serialize_format_serialize (void *dest, const SpaFormat *format);
|
||||
SpaFormat * spa_serialize_format_deserialize (void *src, off_t offset);
|
||||
SpaFormat * spa_serialize_format_copy_into (void *dest, const SpaFormat *format);
|
||||
size_t pinos_serialize_format_get_size (const SpaFormat *format);
|
||||
size_t pinos_serialize_format_serialize (void *dest, const SpaFormat *format);
|
||||
SpaFormat * pinos_serialize_format_deserialize (void *src, off_t offset);
|
||||
SpaFormat * pinos_serialize_format_copy_into (void *dest, const SpaFormat *format);
|
||||
|
||||
size_t spa_serialize_port_info_get_size (const SpaPortInfo *info);
|
||||
size_t spa_serialize_port_info_serialize (void *dest, const SpaPortInfo *info);
|
||||
SpaPortInfo * spa_serialize_port_info_deserialize (void *src, off_t offset);
|
||||
SpaPortInfo * spa_serialize_port_info_copy_into (void *dest, const SpaPortInfo *info);
|
||||
size_t pinos_serialize_port_info_get_size (const SpaPortInfo *info);
|
||||
size_t pinos_serialize_port_info_serialize (void *dest, const SpaPortInfo *info);
|
||||
SpaPortInfo * pinos_serialize_port_info_deserialize (void *src, off_t offset);
|
||||
SpaPortInfo * pinos_serialize_port_info_copy_into (void *dest, const SpaPortInfo *info);
|
||||
|
||||
size_t spa_serialize_props_get_size (const SpaProps *props);
|
||||
size_t spa_serialize_props_serialize (void *dest, const SpaProps *props);
|
||||
SpaProps * spa_serialize_props_deserialize (void *src, off_t offset);
|
||||
SpaProps * spa_serialize_props_copy_into (void *dest, const SpaProps *props);
|
||||
size_t pinos_serialize_props_get_size (const SpaProps *props);
|
||||
size_t pinos_serialize_props_serialize (void *dest, const SpaProps *props);
|
||||
SpaProps * pinos_serialize_props_deserialize (void *src, off_t offset);
|
||||
SpaProps * pinos_serialize_props_copy_into (void *dest, const SpaProps *props);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __SPA_SERIALIZE_H__ */
|
||||
#endif /* __PINOS_SERIALIZE_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue