mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-06 10:20:09 +01:00
* core no longer exposes create_remote/local_object * node, device & link have constructor methods to enable the create_remote_object functionality * added WpImplNode to wrap pw_impl_node and allow creating "local" node instances * added WpSpaDevice to wrap spa_device and allow creating "local" device instances * exporting objects in all cases now happens by requesting FEATURE_BOUND from the proxy, eliminating the need for WpExported * replaced WpMonitor by new, simpler code directly in module-monitor * the proxy type lookup table in WpProxy is gone, we now use a field on the class structure of every WpProxy subclass and iterate through all the class structures instead; this is more flexible and extensible
71 lines
1.4 KiB
C
71 lines
1.4 KiB
C
/* WirePlumber
|
|
*
|
|
* Copyright © 2019 Collabora Ltd.
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef __WIREPLUMBER_CORE_H__
|
|
#define __WIREPLUMBER_CORE_H__
|
|
|
|
#include <glib-object.h>
|
|
#include "object-manager.h"
|
|
#include "proxy.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
struct pw_context;
|
|
struct pw_core;
|
|
|
|
#define WP_TYPE_CORE (wp_core_get_type ())
|
|
WP_API
|
|
G_DECLARE_FINAL_TYPE (WpCore, wp_core, WP, CORE, GObject)
|
|
|
|
/* Basic */
|
|
|
|
WP_API
|
|
WpCore * wp_core_new (GMainContext *context, WpProperties * properties);
|
|
|
|
WP_API
|
|
GMainContext * wp_core_get_context (WpCore * self);
|
|
|
|
WP_API
|
|
struct pw_context * wp_core_get_pw_context (WpCore * self);
|
|
|
|
WP_API
|
|
struct pw_core * wp_core_get_pw_core (WpCore * self);
|
|
|
|
/* Connection */
|
|
|
|
WP_API
|
|
gboolean wp_core_connect (WpCore *self);
|
|
|
|
WP_API
|
|
void wp_core_disconnect (WpCore *self);
|
|
|
|
WP_API
|
|
gboolean wp_core_is_connected (WpCore * self);
|
|
|
|
/* Callback */
|
|
|
|
WP_API
|
|
guint wp_core_idle_add (WpCore * self, GSourceFunc function, gpointer data,
|
|
GDestroyNotify destroy);
|
|
|
|
WP_API
|
|
gboolean wp_core_sync (WpCore * self, GCancellable * cancellable,
|
|
GAsyncReadyCallback callback, gpointer user_data);
|
|
|
|
WP_API
|
|
gboolean wp_core_sync_finish (WpCore * self, GAsyncResult * res,
|
|
GError ** error);
|
|
|
|
/* Object Manager */
|
|
|
|
WP_API
|
|
void wp_core_install_object_manager (WpCore * self, WpObjectManager * om);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|