aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/stand_in
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
commitca59138a2aef96960381f986b8c683634e4d8e63 (patch)
tree16c62f8a2b3bfe7ad55053294095f70a85d19613 /src/plugins/stand_in
parentcc959fda4fac18f1c429158d1ffea24692276310 (diff)
tweak: move things around
Diffstat (limited to 'src/plugins/stand_in')
-rw-r--r--src/plugins/stand_in/stand_in.c27
-rw-r--r--src/plugins/stand_in/stand_in.h23
2 files changed, 50 insertions, 0 deletions
diff --git a/src/plugins/stand_in/stand_in.c b/src/plugins/stand_in/stand_in.c
new file mode 100644
index 0000000..dbcc7e8
--- /dev/null
+++ b/src/plugins/stand_in/stand_in.c
@@ -0,0 +1,27 @@
+/* Why this file is needed:
+ * If the plugins are disabled,
+ * their conditionals will never resolve
+ * and their functionality never comes into play
+ * but the compiler still wants to know their type
+*/
+
+int libre_redirect(const char* uri, char* uri_filtered){
+ return 0;
+}
+void str_init(char* str, int n){
+
+};
+
+int str_replace_start(const char* string, const char* target,
+ const char* replacement, char* output){
+ return 1;
+};
+
+void read_readability_js(char* string){
+
+}
+
+void read_style_js(char* string){
+
+}
+
diff --git a/src/plugins/stand_in/stand_in.h b/src/plugins/stand_in/stand_in.h
new file mode 100644
index 0000000..062acf7
--- /dev/null
+++ b/src/plugins/stand_in/stand_in.h
@@ -0,0 +1,23 @@
+/* Why this file is needed:
+ * If the plugins are disabled,
+ * their conditionals will never resolve
+ * and their functionality never comes into play
+ * but the compiler still wants to know their type
+*/
+
+#pragma once
+
+#define LIBRE_N 0
+#define STYLE_N 0
+#define READABILITY_N 84638 + 1
+
+int libre_redirect(const char* uri, char* uri_filtered);
+void str_init(char* str, int n);
+
+int str_replace_start(const char* string, const char* target,
+ const char* replacement, char* output);
+
+void read_readability_js(char* string);
+
+void read_style_js(char* string);
+