diff options
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); |