Files
George Kiagiadakis add310d9eb dbus: refactor WpDBus into a plugin called dbus-connection
Now that we have proper module load order, we can have this shared
dbus connection in a module instead of the library. The module has
to be loaded before any other modules that need it, obviously.
2023-06-20 12:39:29 +03:00

37 lines
782 B
C

/* WirePlumber
*
* Copyright © 2021 Collabora Ltd.
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_RESERVE_DEVICE_PLUGIN_H__
#define __WIREPLUMBER_RESERVE_DEVICE_PLUGIN_H__
#include <wp/wp.h>
G_BEGIN_DECLS
#define WP_LOCAL_LOG_TOPIC log_topic_rd
WP_LOG_TOPIC_EXTERN (log_topic_rd)
#define FDO_RESERVE_DEVICE1_SERVICE "org.freedesktop.ReserveDevice1"
#define FDO_RESERVE_DEVICE1_PATH "/org/freedesktop/ReserveDevice1"
G_DECLARE_FINAL_TYPE (WpReserveDevicePlugin, wp_reserve_device_plugin,
WP, RESERVE_DEVICE_PLUGIN, WpPlugin)
struct _WpReserveDevicePlugin
{
WpPlugin parent;
WpPlugin *dbus;
GHashTable *reserve_devices;
GDBusObjectManagerServer *manager;
};
G_END_DECLS
#endif