mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Remove _remove from properties, we can do the same with set of a NULL value. Add signals to the stream API to manage the buffers. Wrap those buffers in a GstBuffer in the pinossrc and pinossink elements and pool them in a bufferpool. Remove SPA_EVENT_TYPE_PULL_INPUT, we can do the same with NEED_INPUT and by using a ringbuffer. Do more complete allocation of buffers in the link. Use the buffer allocator if none of the nodes can allocate. Follow the node state to trigger negotiation and allocation. Remove offset and size when refering to buffers, we want to always deal with the complete buffer and use a ringbuffer for ranges or change the offset/size in the buffer data when needed. Serialize port_info structures as part of the port_update Print both the enum number and the name when debuging properties or formats.
59 lines
2.5 KiB
C
59 lines
2.5 KiB
C
/* Pinos
|
|
* Copyright (C) 2015 Wim Taymans <wim.taymans@gmail.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __PINOS_PROPERTIES_H__
|
|
#define __PINOS_PROPERTIES_H__
|
|
|
|
#include <glib.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _PinosProperties PinosProperties;
|
|
|
|
#define PINOS_TYPE_PROPERTIES (pinos_properties_get_type())
|
|
GType pinos_properties_get_type (void);
|
|
|
|
PinosProperties * pinos_properties_new (const gchar *key, ...) G_GNUC_NULL_TERMINATED;
|
|
PinosProperties * pinos_properties_copy (PinosProperties *properties);
|
|
PinosProperties * pinos_properties_merge (PinosProperties *oldprops,
|
|
PinosProperties *newprops);
|
|
void pinos_properties_free (PinosProperties *properties);
|
|
|
|
void pinos_properties_set (PinosProperties *properties,
|
|
const gchar *key,
|
|
const gchar *value);
|
|
void pinos_properties_setf (PinosProperties *properties,
|
|
const gchar *key,
|
|
const gchar *format,
|
|
...) G_GNUC_PRINTF (3, 4);
|
|
const gchar * pinos_properties_get (PinosProperties *properties,
|
|
const gchar *key);
|
|
|
|
const gchar * pinos_properties_iterate (PinosProperties *properties,
|
|
gpointer *state);
|
|
|
|
gboolean pinos_properties_init_builder (PinosProperties *properties,
|
|
GVariantBuilder *builder);
|
|
GVariant * pinos_properties_to_variant (PinosProperties *properties);
|
|
PinosProperties * pinos_properties_from_variant (GVariant *variant);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __PINOS_PROPERTIES_H__ */
|