aboutsummaryrefslogtreecommitdiff
path: root/plugins/stand_in/stand_in.c
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-02-07 14:17:10 +0100
committerNunoSempere <nuno.sempere@protonmail.com>2023-02-07 14:17:10 +0100
commitb50d30851b844b74dbd9e03dd9de8d0fa5b0a9f8 (patch)
treea696cc5bc9ae1b3acc675d6a07f1ce1df47097c4 /plugins/stand_in/stand_in.c
parent35f968f29bca56274d32996541cde747f250224c (diff)
fix: fix some warts
- stuff to deal with plugin code wasn't actually compiling - created a "stand_in" plugin to provide headers and function definitions - when these are not used - it is likely there are better approaches here - hidebar, newtab -> hide_bar, new_tab
Diffstat (limited to 'plugins/stand_in/stand_in.c')
-rw-r--r--plugins/stand_in/stand_in.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/stand_in/stand_in.c b/plugins/stand_in/stand_in.c
new file mode 100644
index 0000000..dbcc7e8
--- /dev/null
+++ b/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){
+
+}
+