feat: add ESP32 embedded agent + namespace VRF reference docs + update android-agent submodule

- apps/device-agent-embedded/: ESP32 WireGuard agent (C, ESP-IDF, mbedTLS)
- reference/namespace-vrf/: Linux namespace/VRF network isolation docs
- apps/android-agent: VPN permission check, StartResult sealed class
This commit is contained in:
datadunia
2026-09-13 14:39:24 +07:00
parent 88fa60901e
commit e523398fa8
31 changed files with 6766 additions and 1 deletions
+39
View File
@@ -0,0 +1,39 @@
/**
* @file tunnel.h
* @brief WireGuard Tunnel Management
*/
#ifndef TUNNEL_H
#define TUNNEL_H
#include <esp_err.h>
#include <stdint.h>
#include <stdbool.h>
#include "config.h"
/**
* @brief Initialize WireGuard tunnel
*/
esp_err_t tunnel_init(const wg_config_t *config);
/**
* @brief Apply configuration to tunnel
*/
esp_err_t tunnel_apply_config(const wg_config_t *config);
/**
* @brief Rebuild tunnel with new configuration
*/
esp_err_t tunnel_rebuild(const wg_config_t *config);
/**
* @brief Get last handshake timestamp (epoch seconds)
*/
int64_t tunnel_get_last_handshake(void);
/**
* @brief Check if tunnel is up
*/
bool tunnel_is_up(void);
#endif /* TUNNEL_H */