/* * Copyright 2025 Vibhav Pant * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef __BTHLEDEFS_H #define __BTHLEDEFS_H typedef struct _BTH_LE_UUID { BOOLEAN IsShortUuid; union { USHORT ShortUuid; GUID LongUuid; } Value; } BTH_LE_UUID, *PBTH_LE_UUID; typedef struct _BTH_LE_GATT_SERVICE { BTH_LE_UUID ServiceUuid; USHORT AttributeHandle; } BTH_LE_GATT_SERVICE, *PBTH_LE_GATT_SERVICE; typedef struct _BTH_LE_GATT_CHARACTERISTIC { USHORT ServiceHandle; BTH_LE_UUID CharacteristicUuid; USHORT AttributeHandle; USHORT CharacteristicValueHandle; BOOLEAN IsBroadcastable; BOOLEAN IsReadable; BOOLEAN IsWritable; BOOLEAN IsWritableWithoutResponse; BOOLEAN IsSignedWritable; BOOLEAN IsNotifiable; BOOLEAN IsIndicatable; BOOLEAN HasExtendedProperties; } BTH_LE_GATT_CHARACTERISTIC, *PBTH_LE_GATT_CHARACTERISTIC; DEFINE_GUID( GUID_BLUETOOTHLE_DEVICE_INTERFACE, 0x781aee18, 0x7733, 0x4ce4, 0xad, 0xd0, 0x91, 0xf4, 0x1c, 0x67, 0xb5, 0x92 ); DEFINE_GUID( BTH_LE_ATT_BLUETOOTH_BASE_GUID, 0, 0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb ); #endif