Debian Codegraph @

utils/aplay/dbus.h

raw
1 /*
2 * BlueALSA - dbus.h
3 * Copyright (c) 2016-2024 Arkadiusz Bokowy
4 *
5 * This file is a part of bluez-alsa.
6 *
7 * This project is licensed under the terms of the MIT license.
8 *
9 */
10
11 #ifndef BLUEALSA_APLAY_DBUS_H_
12 #define BLUEALSA_APLAY_DBUS_H_
13
14 #include <bluetooth/bluetooth.h>
15 #include <dbus/dbus.h>
16
17 struct bluez_device {
18
19 /* BlueZ D-Bus device path */
20 char path[128];
21
22 /* used HCI adapter */
23 char hci_name[8];
24 /* device MAC address */
25 bdaddr_t bt_addr;
26
27 /* device name (alias) */
28 char name[64];
29 /* device type name */
30 char icon[32];
31
32 unsigned int paired : 1;
33 unsigned int trusted : 1;
34
35 };
36
37 DBusMessage *dbus_get_properties(DBusConnection *conn,
38 const char *service, const char *path, const char *interface,
39 const char *property, DBusError *error);
40
41 int dbus_bluez_get_device(DBusConnection *conn, const char *path,
42 struct bluez_device *dev, DBusError *error);
43
44 #endif