Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
OSXAutoTypes.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2022 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6#pragma once
7
8#if WINAPI_CARBON
9#include <Carbon/Carbon.h>
10#include <memory>
11
12using CFDeallocator = decltype(&CFRelease);
13using AutoCFArray = std::unique_ptr<const __CFArray, CFDeallocator>;
14using AutoCFDictionary = std::unique_ptr<const __CFDictionary, CFDeallocator>;
15using AutoTISInputSourceRef = std::unique_ptr<__TISInputSource, CFDeallocator>;
16
17#endif