diff options
| author | Your Name <you@example.com> | 2026-05-18 19:20:35 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 19:20:35 +0530 |
| commit | c8c68dcc0dc4b897519105faec64994e820af0c2 (patch) | |
| tree | 56fab9d5d576efaf80045b228b1d292a66049ab9 /components/tollgate_core | |
| parent | f6369f5b87f5dab17a03315d82454fdcdd668ec9 (diff) | |
fix: build-verify tollgate_core component extraction
- Remove display/cvm/font deps from CMakeLists (not yet merged branches)
- Add tollgate_platform.h include to session header
- Add tollgate_core_session_set_platform declaration
- Remove duplicate tollgate_core_dns_stop wrapper (dns module has own impl)
- Update captive_portal.c to use tollgate_core_* API
- Remove display/cvm calls from tollgate_main.c
- Add tollgate_get_platform declaration to config.h
- Fix nucula wallet.hpp submodule (save_proofs visibility)
- Add tollgate_core include paths to test Makefile
- Build passes, all unit tests pass (61/61)
Diffstat (limited to 'components/tollgate_core')
| -rw-r--r-- | components/tollgate_core/src/tollgate_core.c | 5 | ||||
| -rw-r--r-- | components/tollgate_core/src/tollgate_core_session.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/components/tollgate_core/src/tollgate_core.c b/components/tollgate_core/src/tollgate_core.c index 3813258..666d2e0 100644 --- a/components/tollgate_core/src/tollgate_core.c +++ b/components/tollgate_core/src/tollgate_core.c | |||
| @@ -45,11 +45,6 @@ esp_err_t tollgate_core_dns_start(esp_ip4_addr_t upstream_dns) | |||
| 45 | return tollgate_core_dns_start_internal(s_ap_ip, upstream_dns); | 45 | return tollgate_core_dns_start_internal(s_ap_ip, upstream_dns); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void tollgate_core_dns_stop(void) | ||
| 49 | { | ||
| 50 | tollgate_core_dns_stop_internal(); | ||
| 51 | } | ||
| 52 | |||
| 53 | esp_err_t tollgate_core_process_payment(uint32_t client_ip, const char *token_str) | 48 | esp_err_t tollgate_core_process_payment(uint32_t client_ip, const char *token_str) |
| 54 | { | 49 | { |
| 55 | if (!s_platform || !token_str) return ESP_FAIL; | 50 | if (!s_platform || !token_str) return ESP_FAIL; |
diff --git a/components/tollgate_core/src/tollgate_core_session.h b/components/tollgate_core/src/tollgate_core_session.h index 95b5c48..444b9fa 100644 --- a/components/tollgate_core/src/tollgate_core_session.h +++ b/components/tollgate_core/src/tollgate_core_session.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define TOLLGATE_CORE_SESSION_H | 2 | #define TOLLGATE_CORE_SESSION_H |
| 3 | 3 | ||
| 4 | #include "esp_err.h" | 4 | #include "esp_err.h" |
| 5 | #include "tollgate_platform.h" | ||
| 5 | #include <stdint.h> | 6 | #include <stdint.h> |
| 6 | #include <stdbool.h> | 7 | #include <stdbool.h> |
| 7 | 8 | ||
| @@ -19,6 +20,7 @@ typedef struct { | |||
| 19 | } tg_session_t; | 20 | } tg_session_t; |
| 20 | 21 | ||
| 21 | esp_err_t tollgate_core_session_init(void); | 22 | esp_err_t tollgate_core_session_init(void); |
| 23 | void tollgate_core_session_set_platform(const tollgate_platform_t *platform); | ||
| 22 | 24 | ||
| 23 | tg_session_t *tollgate_core_session_create(uint32_t client_ip, uint64_t allotment_ms); | 25 | tg_session_t *tollgate_core_session_create(uint32_t client_ip, uint64_t allotment_ms); |
| 24 | tg_session_t *tollgate_core_session_create_bytes(uint32_t client_ip, uint64_t allotment_bytes); | 26 | tg_session_t *tollgate_core_session_create_bytes(uint32_t client_ip, uint64_t allotment_bytes); |