[Feature] (Client): read a system config file and decline EGL/GLX/GBM when no server answers

This commit is contained in:
2026-10-02 19:36:38 -04:00
parent d24abe9287
commit 69e96f5b8d
18 changed files with 932 additions and 13 deletions
+11
View File
@@ -26,8 +26,19 @@ namespace MobileGL {
namespace MG_ConfigLoader {
void Init();
// One setting resolved the way Init() resolves it - the environment, then the system
// configuration files (ConfigLoader.cpp) - for the few readers that must decide something
// before MobileGL initializes. False when neither names it.
Bool LookupSetting(const char* key, String& outValue);
} // namespace MG_ConfigLoader
// Whether this process can be served right now. False only when MobileGL is configured to
// reach a server that is not there (or a split session already failed to come up), so a
// caller that can choose another implementation - the system's EGL/GLX/GBM loaders - should
// decline rather than hand out something that cannot draw. Cheap: once true it stays true
// until the library is torn down, and a probe is one non-blocking connect with a short bound.
Bool ImplementationAvailable();
namespace MG_Backend {
void Init();
} // namespace MG_Backend