Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
31 lines
607 B
C++
31 lines
607 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <memory>
|
|
|
|
namespace rtc {
|
|
class Thread;
|
|
}
|
|
|
|
namespace tgcalls {
|
|
|
|
class Threads {
|
|
public:
|
|
virtual ~Threads() = default;
|
|
virtual rtc::Thread *getNetworkThread() = 0;
|
|
virtual rtc::Thread *getMediaThread() = 0;
|
|
virtual rtc::Thread *getWorkerThread() = 0;
|
|
|
|
// it is not possible to decrease pool size
|
|
static void setPoolSize(size_t size);
|
|
static std::shared_ptr<Threads> getThreads();
|
|
};
|
|
|
|
namespace StaticThreads {
|
|
rtc::Thread *getNetworkThread();
|
|
rtc::Thread *getMediaThread();
|
|
rtc::Thread *getWorkerThread();
|
|
std::shared_ptr<Threads> &getThreads();
|
|
}
|
|
|
|
};
|