|  |  |  | libnm-util Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <nm-setting-bluetooth.h>
                    NMSettingBluetooth;
                    NMSettingBluetoothClass;
enum                NMSettingBluetoothError;
#define             NM_SETTING_BLUETOOTH_BDADDR
#define             NM_SETTING_BLUETOOTH_ERROR
#define             NM_SETTING_BLUETOOTH_SETTING_NAME
#define             NM_SETTING_BLUETOOTH_TYPE
#define             NM_SETTING_BLUETOOTH_TYPE_DUN
#define             NM_SETTING_BLUETOOTH_TYPE_PANU
GQuark              nm_setting_bluetooth_error_quark    (void);
const GByteArray *  nm_setting_bluetooth_get_bdaddr     (NMSettingBluetooth *setting);
const char *        nm_setting_bluetooth_get_connection_type
                                                        (NMSettingBluetooth *setting);
NMSetting *         nm_setting_bluetooth_new            (void);
The NMSettingBluetooth object is a NMSetting subclass that describes properties necessary for connection to devices that provide network connections via the Bluetooth Dial-Up Networking (DUN) and Network Access Point (NAP) profiles.
typedef struct {
	NMSettingClass parent;
	/* Padding for future expansion */
	void (*_reserved1) (void);
	void (*_reserved2) (void);
	void (*_reserved3) (void);
	void (*_reserved4) (void);
} NMSettingBluetoothClass;
typedef enum {
	NM_SETTING_BLUETOOTH_ERROR_UNKNOWN = 0,            /*< nick=UnknownError >*/
	NM_SETTING_BLUETOOTH_ERROR_INVALID_PROPERTY,       /*< nick=InvalidProperty >*/
	NM_SETTING_BLUETOOTH_ERROR_MISSING_PROPERTY,       /*< nick=MissingProperty >*/
	NM_SETTING_BLUETOOTH_ERROR_TYPE_SETTING_NOT_FOUND, /*< nick=TypeSettingNotFound >*/
} NMSettingBluetoothError;
| unknown or unclassified error | |
| the property was invalid | |
| the property was missing and is required | |
| the connection did not contain a required type setting, ie for DUN connections the connection must also contain an NMSettingGsm or NMSettingCdma as appropriate | 
#define NM_SETTING_BLUETOOTH_TYPE_DUN "dun"
Connection type describing a connection to devices that support the Bluetooth DUN profile.
#define NM_SETTING_BLUETOOTH_TYPE_PANU "panu"
Connection type describing a connection to devices that support the Bluetooth NAP (Network Access Point) protocol, which accepts connections via PANU.
GQuark              nm_setting_bluetooth_error_quark    (void);
Registers an error quark for NMSettingBluetooth if necessary.
| Returns : | the error quark used for NMSettingBluetooth errors. | 
const GByteArray *  nm_setting_bluetooth_get_bdaddr     (NMSettingBluetooth *setting);
Gets the Bluetooth address of the remote device which this setting describes a connection to.
| 
 | the NMSettingBluetooth | 
| Returns : | the Bluetooth address | 
const char *        nm_setting_bluetooth_get_connection_type
                                                        (NMSettingBluetooth *setting);
Returns the connection method for communicating with the remote device (i.e. either DUN to a DUN-capable device or PANU to a NAP-capable device).
| 
 | the NMSettingBluetooth | 
| Returns : | the type, either NM_SETTING_BLUETOOTH_PANUorNM_SETTING_BLUETOOTH_DUN | 
NMSetting *         nm_setting_bluetooth_new            (void);
Creates a new NMSettingBluetooth object with default values.
| Returns : | the new empty NMSettingBluetooth object. [transfer full] | 
"type" property"type" gchar* : Read / Write
Either 'dun' for Dial-Up Networking connections or 'panu' for Personal Area Networking connections to devices supporting the NAP profile.
Default value: NULL