mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 09:09:17 +00:00
Add config server client support for the C FFI and Android JNI bindings. Reuse the existing easytier::web_client::run_web_client path and NetworkInstanceManager; OHOS is unchanged. Report successful remote config apply/delete operations through a callback, with one JSON event per affected instance. Keep the config server client and FFI data plane mutually exclusive: once either side is in use, the other side returns an error instead of sharing lifecycle state.
14 lines
307 B
Rust
14 lines
307 B
Rust
use once_cell::sync::Lazy;
|
|
|
|
static LOGGER_INIT: Lazy<()> = Lazy::new(|| {
|
|
android_logger::init_once(
|
|
android_logger::Config::default()
|
|
.with_max_level(log::LevelFilter::Debug)
|
|
.with_tag("EasyTier-JNI"),
|
|
);
|
|
});
|
|
|
|
pub(crate) fn init() {
|
|
Lazy::force(&LOGGER_INIT);
|
|
}
|