2017-05-06 01:18:34 +02: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 {
|
2018-11-09 16:44:01 +01:00
|
|
|
|
|
|
|
struct CellularCarrierInfo;
|
|
|
|
|
2017-05-06 01:18:34 +02:00
|
|
|
class DarwinSpecific{
|
|
|
|
public:
|
2018-07-17 18:48:21 +02:00
|
|
|
enum{
|
|
|
|
THREAD_PRIO_USER_INTERACTIVE,
|
|
|
|
THREAD_PRIO_USER_INITIATED,
|
|
|
|
THREAD_PRIO_UTILITY,
|
|
|
|
THREAD_PRIO_BACKGROUND,
|
|
|
|
THREAD_PRIO_DEFAULT
|
|
|
|
};
|
2017-05-06 01:18:34 +02:00
|
|
|
static void GetSystemName(char* buf, size_t len);
|
2018-07-17 18:48:21 +02:00
|
|
|
static void SetCurrentThreadPriority(int priority);
|
2018-11-09 16:44:01 +01:00
|
|
|
static CellularCarrierInfo GetCarrierInfo();
|
2017-05-06 01:18:34 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //TGVOIP_DARWINSPECIFIC_H
|