mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-16 10:00:03 -05:00
27 lines
597 B
C++
27 lines
597 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "Profile.hpp"
|
|
|
|
namespace bluetooth
|
|
{
|
|
bool Profile::isL2CapInitialized = false;
|
|
bool Profile::isSdpInitialized = false;
|
|
|
|
void Profile::initSdp()
|
|
{
|
|
if (!isSdpInitialized) {
|
|
sdp_init();
|
|
isSdpInitialized = true;
|
|
}
|
|
}
|
|
|
|
void Profile::initL2cap()
|
|
{
|
|
if (!isL2CapInitialized) {
|
|
l2cap_init();
|
|
isL2CapInitialized = true;
|
|
}
|
|
}
|
|
} // namespace bluetooth
|