summaryrefslogtreecommitdiff
path: root/include/tinyff
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-03 09:37:43 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-03 09:37:43 +1100
commitfd1f2cdb22034410ca82021555bd2eb9b4604fbe (patch)
tree085a2cd01701221482dcec9d5f446b33041ab962 /include/tinyff
parentdd5fb05fb732a294727bc595839b274137a7ca06 (diff)
feat(main): Create ff_ctx for global setting storage
Diffstat (limited to 'include/tinyff')
-rw-r--r--include/tinyff/dbg.h5
-rw-r--r--include/tinyff/tinyff.h13
2 files changed, 12 insertions, 6 deletions
diff --git a/include/tinyff/dbg.h b/include/tinyff/dbg.h
index be5e04e..3871c2b 100644
--- a/include/tinyff/dbg.h
+++ b/include/tinyff/dbg.h
@@ -15,11 +15,6 @@
#include <tinyff/result.h>
#include <tinyff/common.h>
-extern FILE *intff_debug_stream;
-
-// This flag is the same name as FF_DEBUG_ENABLED but is local to this file
-// Thats why it has the int prefix
-extern ff_flag intff_debug_enabled;
// Sets the debug stream. If stream is NULL, debug is disabled.
ff_result ff_set_debug_stream(FILE *stream);
diff --git a/include/tinyff/tinyff.h b/include/tinyff/tinyff.h
index 48c4bbf..51298ef 100644
--- a/include/tinyff/tinyff.h
+++ b/include/tinyff/tinyff.h
@@ -1 +1,12 @@
-// TODO: Include all formats \ No newline at end of file
+// TODO: Include all formats
+
+
+
+#include "common.h"
+#include "stream.h"
+typedef struct {
+ // Debug settings
+ ff_stream* ff_debug_stream;
+ ff_flag ff_debug_enabled;
+
+} ff_ctx; \ No newline at end of file