FIX: OSX disable app-nap during serial comm (@anticat)

https://github.com/Proxmark/proxmark3/pull/687
This commit is contained in:
Chris
2018-10-06 13:29:20 +02:00
parent 97c0729289
commit 7d09a466fb
6 changed files with 83 additions and 5 deletions

17
client/util_darwin.h Normal file
View File

@@ -0,0 +1,17 @@
//-----------------------------------------------------------------------------
// (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__
void disableAppNap(const char* reason);
void enableAppNap();
#endif