LdmBluetoothDevice

LdmBluetoothDevice — Bluetooth Device abstraction

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── LdmDevice
            ╰── LdmBluetoothDevice

Description

An LdmBluetoothDevice is a specialised implementation of the LdmDevice which is aware of Bluetooth specific data. This class is never directly created by the user, but is instead returned by the LdmManager.

Users can test if a device is a Bluetooth device without having to cast, by simply checking the “device-type”:

1
2
3
4
5
6
7
8
if (ldm_device_has_type(device, LDM_DEVICE_TYPE_BLUETOOTH)) {
        g_message("Found Bluetooth device");
}

// Alternatively..
if (LDM_IS_BLUETOOTH_DEVICE(device)) {
        g_message("Found Bluetooth device through casting");
}

Functions

See Also

LdmDevice