|  |  |  | gnome-bluetooth Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <bluetooth-enums.h> #define BLUETOOTH_TYPE_AUDIO #define BLUETOOTH_TYPE_INPUT enum BluetoothCategory; enum BluetoothColumn; enum BluetoothStatus; enum BluetoothType;
GEnum +----BluetoothCategory
GEnum +----BluetoothColumn
GEnum +----BluetoothStatus
GFlags +----BluetoothType
#define BLUETOOTH_TYPE_AUDIO (BLUETOOTH_TYPE_HEADSET | BLUETOOTH_TYPE_HEADPHONES | BLUETOOTH_TYPE_OTHER_AUDIO)
#define BLUETOOTH_TYPE_INPUT (BLUETOOTH_TYPE_KEYBOARD | BLUETOOTH_TYPE_MOUSE | BLUETOOTH_TYPE_TABLET | BLUETOOTH_TYPE_JOYPAD)
typedef enum {
	BLUETOOTH_CATEGORY_ALL,
	BLUETOOTH_CATEGORY_PAIRED,
	BLUETOOTH_CATEGORY_TRUSTED,
	BLUETOOTH_CATEGORY_NOT_PAIRED_OR_TRUSTED,
	BLUETOOTH_CATEGORY_PAIRED_OR_TRUSTED,
} BluetoothCategory;
The category of a Bluetooth devices.
typedef enum {
	BLUETOOTH_COLUMN_PROXY,
	BLUETOOTH_COLUMN_ADDRESS,
	BLUETOOTH_COLUMN_ALIAS,
	BLUETOOTH_COLUMN_NAME,
	BLUETOOTH_COLUMN_TYPE,
	BLUETOOTH_COLUMN_ICON,
	BLUETOOTH_COLUMN_DEFAULT,
	BLUETOOTH_COLUMN_PAIRED,
	BLUETOOTH_COLUMN_TRUSTED,
	BLUETOOTH_COLUMN_CONNECTED,
	BLUETOOTH_COLUMN_DISCOVERABLE,
	BLUETOOTH_COLUMN_DISCOVERING,
	BLUETOOTH_COLUMN_LEGACYPAIRING,
	BLUETOOTH_COLUMN_POWERED,
	BLUETOOTH_COLUMN_SERVICES,
	BLUETOOTH_COLUMN_UUIDS,
} BluetoothColumn;
A column identifier to pass to bluetooth_chooser_get_selected_device_info().
| a GDBusProxy object | |
| a string representing a Bluetooth address | |
| a string to use for display (the name of the device, or its address if the name is not known). Only available for devices. | |
| a string representing the device or adapter's name | |
| the BluetoothType of the device. Only available for devices. | |
| a string representing the icon name for the device. Only available for devices. | |
| whether the adapter is the default one. Only available for adapters. | |
| whether the device is paired to its parent adapter. Only available for devices. | |
| whether the device is trusted. Only available for devices. | |
| whether the device is connected. Only available for devices. | |
| whether the adapter is discoverable/visible. Only available for adapters. | |
| whether the adapter is discovering. Only available for adapters. | |
| whether the device does not support Bluetooth 2.1 Simple Secure Pairing. Only available for devices. | |
| whether the adapter is powered. Only available for adapters. | |
| an array of service names and BluetoothStatus connection statuses. | |
| a string array of human-readable UUIDs. | 
typedef enum {
	BLUETOOTH_STATUS_INVALID = 0,
	BLUETOOTH_STATUS_DISCONNECTED,
	BLUETOOTH_STATUS_CONNECTED,
	BLUETOOTH_STATUS_CONNECTING,
	BLUETOOTH_STATUS_PLAYING
} BluetoothStatus;
The connection status of a service on a particular device. Note that BLUETOOTH_STATUS_CONNECTING and BLUETOOTH_STATUS_PLAYING might not be available for all services.
| whether the status has been set yet | |
| whether the service is disconnected | |
| whether the service is connected | |
| whether the service is connecting | |
| whether the service is playing (only used by the audio service) | 
typedef enum {
	BLUETOOTH_TYPE_ANY		= 1 << 0,
	BLUETOOTH_TYPE_PHONE		= 1 << 1,
	BLUETOOTH_TYPE_MODEM		= 1 << 2,
	BLUETOOTH_TYPE_COMPUTER		= 1 << 3,
	BLUETOOTH_TYPE_NETWORK		= 1 << 4,
	BLUETOOTH_TYPE_HEADSET		= 1 << 5,
	BLUETOOTH_TYPE_HEADPHONES = 1 << 6,
	BLUETOOTH_TYPE_OTHER_AUDIO = 1 << 7,
	BLUETOOTH_TYPE_KEYBOARD		= 1 << 8,
	BLUETOOTH_TYPE_MOUSE		= 1 << 9,
	BLUETOOTH_TYPE_CAMERA		= 1 << 10,
	BLUETOOTH_TYPE_PRINTER		= 1 << 11,
	BLUETOOTH_TYPE_JOYPAD		= 1 << 12,
	BLUETOOTH_TYPE_TABLET		= 1 << 13,
	BLUETOOTH_TYPE_VIDEO		= 1 << 14,
} BluetoothType;
The type of a Bluetooth device. See also BLUETOOTH_TYPE_INPUT and BLUETOOTH_TYPE_AUDIO
| any device, or a device of an unknown type | |
| a telephone (usually a cell/mobile phone) | |
| a modem | |
| a computer, can be a laptop, a wearable computer, etc. | |
| a network device, such as a router | |
| a headset (usually a hands-free device) | |
| headphones (covers two ears) | |
| another type of audio device | |
| a keyboard | |
| a mouse | |
| a camera (still or moving) | |
| a printer | |
| a joypad, joystick, or other game controller | |
| a drawing tablet | |
| a video device, such as a webcam |