summaryrefslogtreecommitdiff
path: root/include/hybbx/entertain_config.h
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-09 12:42:59 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-09 12:42:59 +0000
commit7815183927ecb914de430a5d64f9df27a48f49ae (patch)
tree1f75384f4b54998476f9d2e8219b8570c3f8f650 /include/hybbx/entertain_config.h
parente1730d8012fca0a712de588285342f7ad10dd804 (diff)
now including entertain/chess
Diffstat (limited to 'include/hybbx/entertain_config.h')
-rw-r--r--include/hybbx/entertain_config.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/hybbx/entertain_config.h b/include/hybbx/entertain_config.h
new file mode 100644
index 0000000..8042d8a
--- /dev/null
+++ b/include/hybbx/entertain_config.h
@@ -0,0 +1,34 @@
+#ifndef HYBBX_ENTERTAIN_CONFIG_H
+#define HYBBX_ENTERTAIN_CONFIG_H
+
+#include "hybbx/config.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Entertain feature area — Main / standalone Main only.
+ * Chess is a fixed part of Entertain (no separate chess= INI key).
+ * Future: /proxychess (stub) for mesh play via Mains.
+ */
+typedef struct hybbx_entertain_config {
+ /** Non-zero when [entertain] enabled=yes and role allows. */
+ int enabled;
+} hybbx_entertain_config_t;
+
+void hybbx_entertain_config_defaults(hybbx_entertain_config_t *cfg);
+
+/** Load [entertain]; force off on Secondary/Proxy. */
+void hybbx_entertain_config_apply(const hybbx_config_t *config);
+
+const hybbx_entertain_config_t *hybbx_entertain_config_get(void);
+
+/** Non-zero when Entertain plugin should load. */
+int hybbx_entertain_enabled(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* HYBBX_ENTERTAIN_CONFIG_H */
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com