1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2007 - 2009 Red Hat, Inc.
4 * Copyright (C) 2007 - 2008 Novell, Inc.
5 */
6
7#ifndef __NM_SETTING_BLUETOOTH_H__
8#define __NM_SETTING_BLUETOOTH_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-setting.h"
15
16G_BEGIN_DECLS
17
18#define NM_TYPE_SETTING_BLUETOOTH (nm_setting_bluetooth_get_type())
19#define NM_SETTING_BLUETOOTH(obj) \
20 (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_BLUETOOTH, NMSettingBluetooth))
21#define NM_SETTING_BLUETOOTH_CLASS(klass) \
22 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_BLUETOOTH, NMSettingBluetoothClass))
23#define NM_IS_SETTING_BLUETOOTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_BLUETOOTH))
24#define NM_IS_SETTING_BLUETOOTH_CLASS(klass) \
25 (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_BLUETOOTH))
26#define NM_SETTING_BLUETOOTH_GET_CLASS(obj) \
27 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_BLUETOOTH, NMSettingBluetoothClass))
28
29#define NM_SETTING_BLUETOOTH_SETTING_NAME "bluetooth"
30
31#define NM_SETTING_BLUETOOTH_BDADDR "bdaddr"
32#define NM_SETTING_BLUETOOTH_TYPE "type"
33
34/**
35 * NM_SETTING_BLUETOOTH_TYPE_DUN:
36 *
37 * Connection type describing a connection to devices that support the Bluetooth
38 * DUN profile.
39 */
40#define NM_SETTING_BLUETOOTH_TYPE_DUN "dun"
41
42/**
43 * NM_SETTING_BLUETOOTH_TYPE_PANU:
44 *
45 * Connection type describing PANU connection to a Bluetooth NAP (Network
46 * Access Point).
47 */
48#define NM_SETTING_BLUETOOTH_TYPE_PANU "panu"
49
50/**
51 * NM_SETTING_BLUETOOTH_TYPE_NAP:
52 *
53 * Connection type describing a Bluetooth NAP (Network Access Point),
54 * which accepts PANU clients.
55 */
56#define NM_SETTING_BLUETOOTH_TYPE_NAP "nap"
57
58typedef struct _NMSettingBluetoothClass NMSettingBluetoothClass;
59
60GType nm_setting_bluetooth_get_type(void);
61
62NMSetting *nm_setting_bluetooth_new(void);
63const char *nm_setting_bluetooth_get_bdaddr(NMSettingBluetooth *setting);
64const char *nm_setting_bluetooth_get_connection_type(NMSettingBluetooth *setting);
65
66G_END_DECLS
67
68#endif /* __NM_SETTING_BLUETOOTH_H__ */
69

source code of include/libnm/nm-setting-bluetooth.h