wireplumber/modules/module-dbus-reservation/reserve-device.h
Julian Bouzas 321545a32c modules: refactor dbus reservation
The Dbus device reservation has been moved into a separate module, and has also
been refactored to allow reserving a device name before an actual device is
created. Devices now are created and destroyed by the monitor depending on
whether PipeWire owns the device or not. This also simplifies a lot the device
activation module to always enable devices when they are created, and never
worry about checking whether a device is acquired by PipeWire or not.
2020-10-22 14:33:59 -04:00

28 lines
610 B
C

/* WirePlumber
*
* Copyright © 2020 Collabora Ltd.
* @author Julian Bouzas <julian.bouzas@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_RESERVE_DEVICE_H__
#define __WIREPLUMBER_RESERVE_DEVICE_H__
#include <wp/wp.h>
#include "dbus-device-reservation.h"
G_BEGIN_DECLS
#define WP_TYPE_RESERVE_DEVICE (wp_reserve_device_get_type ())
G_DECLARE_FINAL_TYPE (WpReserveDevice, wp_reserve_device, WP, RESERVE_DEVICE,
GObject)
WpReserveDevice * wp_reserve_device_new (WpCore *core,
WpDbusDeviceReservation *reservation, GClosure *manager_closure);
G_END_DECLS
#endif