wireplumber/lib/wp/private/collection.h
Julian Bouzas c3ebd79f00 lib: Add new WpCollection API
This API allows grouping globals into collections. A collection is essentially
a metadata object with information about all the globals it collects. Grouping
globals into collections has the advantage of avoiding defining complex set of
properties to match the interested globals, and they are also a more generic way
to represent a set of globals that share something in common.
2026-01-29 08:27:21 -05:00

27 lines
589 B
C

/* WirePlumber
*
* Copyright © 2025 Collabora Ltd.
* @author Julian Bouzas <julian.bouzas@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_PRIVATE_COLLECTION_H__
#define __WIREPLUMBER_PRIVATE_COLLECTION_H__
#include "global-proxy.h"
G_BEGIN_DECLS
typedef struct _WpCollection WpCollection;
WpCollection * wp_collection_new (WpCore * core, const gchar * name);
gboolean wp_collection_collect_global (WpCollection *self,
WpGlobalProxy *global);
gboolean wp_collection_drop_global (WpCollection *self, WpGlobalProxy *global);
G_END_DECLS
#endif