2018-10-03 14:34:43 +00:00
|
|
|
//
|
|
|
|
// libtgvoip is free and unencumbered public domain software.
|
|
|
|
// For more information, see http://unlicense.org or the UNLICENSE file
|
|
|
|
// you should have received with this source code distribution.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef TGVOIP_DARWINSPECIFIC_H
|
|
|
|
#define TGVOIP_DARWINSPECIFIC_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace tgvoip {
|
2019-02-06 18:22:38 +00:00
|
|
|
|
|
|
|
struct CellularCarrierInfo;
|
|
|
|
|
2018-10-03 14:34:43 +00:00
|
|
|
class DarwinSpecific{
|
|
|
|
public:
|
|
|
|
enum{
|
|
|
|
THREAD_PRIO_USER_INTERACTIVE,
|
|
|
|
THREAD_PRIO_USER_INITIATED,
|
|
|
|
THREAD_PRIO_UTILITY,
|
|
|
|
THREAD_PRIO_BACKGROUND,
|
|
|
|
THREAD_PRIO_DEFAULT
|
|
|
|
};
|
|
|
|
static void GetSystemName(char* buf, size_t len);
|
|
|
|
static void SetCurrentThreadPriority(int priority);
|
2019-02-06 18:22:38 +00:00
|
|
|
static CellularCarrierInfo GetCarrierInfo();
|
|
|
|
static void ConfigureAudioSession();
|
2018-10-03 14:34:43 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //TGVOIP_DARWINSPECIFIC_H
|