blob: a71b39121fc2f3555e87e4d0fe105df1d3028d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (C) 2022 Intel Corporation.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#define QT_BLUETOOTH_BUILD_REMOVED_API
#include <stddef.h> // before we undef __SIZEOF_INT128__
#ifdef __SIZEOF_INT128__
// ensure QtCore/qtypes.h doesn't define quint128
# undef __SIZEOF_INT128__
#endif
#include "qtbluetoothglobal.h"
QT_USE_NAMESPACE
#if QT_BLUETOOTH_REMOVED_SINCE(6, 6)
#include "qbluetoothuuid.h"
static_assert(std::is_aggregate_v<quint128>);
static_assert(std::is_trivial_v<quint128>);
QBluetoothUuid::QBluetoothUuid(quint128 uuid)
: QUuid(uuid.d)
{}
quint128 QBluetoothUuid::toUInt128() const
{
return { toBytes() };
}
#endif // QT_BLUETOOTH_REMOVED_SINCE(6, 6)
|