1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2008 - 2012 Red Hat, Inc.
4 * Copyright (C) 2008 Novell, Inc.
5 */
6
7#ifndef __NM_DEVICE_BT_H__
8#define __NM_DEVICE_BT_H__
9
10#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
11#error "Only <NetworkManager.h> can be included directly."
12#endif
13
14#include "nm-device.h"
15
16G_BEGIN_DECLS
17
18#define NM_TYPE_DEVICE_BT (nm_device_bt_get_type())
19#define NM_DEVICE_BT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DEVICE_BT, NMDeviceBt))
20#define NM_DEVICE_BT_CLASS(klass) \
21 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DEVICE_BT, NMDeviceBtClass))
22#define NM_IS_DEVICE_BT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DEVICE_BT))
23#define NM_IS_DEVICE_BT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DEVICE_BT))
24#define NM_DEVICE_BT_GET_CLASS(obj) \
25 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_DEVICE_BT, NMDeviceBtClass))
26
27#define NM_DEVICE_BT_HW_ADDRESS "hw-address"
28#define NM_DEVICE_BT_NAME "name"
29#define NM_DEVICE_BT_CAPABILITIES "bt-capabilities"
30
31/**
32 * NMDeviceBt:
33 */
34typedef struct _NMDeviceBtClass NMDeviceBtClass;
35
36GType nm_device_bt_get_type(void);
37
38NM_DEPRECATED_IN_1_24_FOR(nm_device_get_hw_address)
39const char *nm_device_bt_get_hw_address(NMDeviceBt *device);
40
41const char *nm_device_bt_get_name(NMDeviceBt *device);
42
43NMBluetoothCapabilities nm_device_bt_get_capabilities(NMDeviceBt *device);
44
45G_END_DECLS
46
47#endif /* __NM_DEVICE_BT_H__ */
48

source code of include/libnm/nm-device-bt.h