upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/components/tollgate_core/src
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-23 23:24:53 +0530
committerYour Name <you@example.com>2026-05-23 23:24:53 +0530
commit85ef20a2004c600dd04428520a79a0e47a54ed2d (patch)
treeb953b6591cf55b8619e806105bbbb5ef696aaafd /components/tollgate_core/src
parente40645e07e4076610abc8270fba421dbdd8fc217 (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.h8
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
10extern "C" {
11#endif
12
9typedef struct { 13typedef 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
32bool tollgate_core_portal_is_captive_uri(const char *uri); 36bool tollgate_core_portal_is_captive_uri(const char *uri);
33 37
38#ifdef __cplusplus
39}
40#endif
41
34#endif 42#endif