diff options
| author | Your Name <you@example.com> | 2026-05-23 23:24:53 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-23 23:24:53 +0530 |
| commit | 85ef20a2004c600dd04428520a79a0e47a54ed2d (patch) | |
| tree | b953b6591cf55b8619e806105bbbb5ef696aaafd /components/tollgate_core/src | |
| parent | e40645e07e4076610abc8270fba421dbdd8fc217 (diff) | |
fix: add extern C guard to tollgate_core_portal.h
Needed for C++ consumers (NerdQAxePlus handler_tollgate.cpp).
Diffstat (limited to 'components/tollgate_core/src')
| -rw-r--r-- | components/tollgate_core/src/tollgate_core_portal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/tollgate_core/src/tollgate_core_portal.h b/components/tollgate_core/src/tollgate_core_portal.h index 20c0552..82c4936 100644 --- a/components/tollgate_core/src/tollgate_core_portal.h +++ b/components/tollgate_core/src/tollgate_core_portal.h | |||
| @@ -6,6 +6,10 @@ | |||
| 6 | #include <stddef.h> | 6 | #include <stddef.h> |
| 7 | #include <stdbool.h> | 7 | #include <stdbool.h> |
| 8 | 8 | ||
| 9 | #ifdef __cplusplus | ||
| 10 | extern "C" { | ||
| 11 | #endif | ||
| 12 | |||
| 9 | typedef struct { | 13 | typedef struct { |
| 10 | const char *key; | 14 | const char *key; |
| 11 | const char *val; | 15 | const char *val; |
| @@ -31,4 +35,8 @@ int tollgate_core_portal_format_usage(const tg_session_t *session, | |||
| 31 | 35 | ||
| 32 | bool tollgate_core_portal_is_captive_uri(const char *uri); | 36 | bool tollgate_core_portal_is_captive_uri(const char *uri); |
| 33 | 37 | ||
| 38 | #ifdef __cplusplus | ||
| 39 | } | ||
| 40 | #endif | ||
| 41 | |||
| 34 | #endif | 42 | #endif |