2018-10-06 19:29:20 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// (c) 2018 AntiCat
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// macOS framework bindings
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef UTIL_DARWIN_H__
|
|
|
|
#define UTIL_DARWIN_H__
|
|
|
|
|
2019-03-10 07:00:59 +08:00
|
|
|
void disableAppNap(const char *reason);
|
2019-04-10 04:42:23 +08:00
|
|
|
void enableAppNap(void);
|
|
|
|
void makeUnfocusable(void);
|
|
|
|
void makeFocusable(void);
|
2018-10-06 19:29:20 +08:00
|
|
|
|
2019-03-12 07:12:26 +08:00
|
|
|
#endif
|