| 1 |
/* WirePlumber |
| 2 |
* |
| 3 |
* Copyright © 2021 Collabora Ltd. |
| 4 |
* @author George Kiagiadakis <[email protected]> |
| 5 |
* |
| 6 |
* SPDX-License-Identifier: MIT |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __WIREPLUMBER_RESERVE_DEVICE_PLUGIN_H__ |
| 10 |
#define __WIREPLUMBER_RESERVE_DEVICE_PLUGIN_H__ |
| 11 |
|
| 12 |
#include <wp/wp.h> |
| 13 |
|
| 14 |
G_BEGIN_DECLS |
| 15 |
|
| 16 |
#define WP_LOCAL_LOG_TOPIC log_topic_rd |
| 17 |
WP_LOG_TOPIC_EXTERN (log_topic_rd) |
| 18 |
|
| 19 |
#define FDO_RESERVE_DEVICE1_SERVICE "org.freedesktop.ReserveDevice1" |
| 20 |
#define FDO_RESERVE_DEVICE1_PATH "/org/freedesktop/ReserveDevice1" |
| 21 |
|
| 22 |
G_DECLARE_FINAL_TYPE (WpReserveDevicePlugin, wp_reserve_device_plugin, |
| 23 |
WP, RESERVE_DEVICE_PLUGIN, WpPlugin) |
| 24 |
|
| 25 |
struct _WpReserveDevicePlugin |
| 26 |
{ |
| 27 |
WpPlugin parent; |
| 28 |
|
| 29 |
WpPlugin *dbus; |
| 30 |
GHashTable *reserve_devices; |
| 31 |
GDBusObjectManagerServer *manager; |
| 32 |
}; |
| 33 |
|
| 34 |
G_END_DECLS |
| 35 |
|
| 36 |
#endif |