refactor: reorganize into subdirs (config/ util/ http/ notifs/ queue/ integrations/ static/)

This commit is contained in:
2026-06-09 00:56:27 +02:00
parent 4bcc34ec86
commit 32deda57e0
23 changed files with 33 additions and 18 deletions
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <stdio.h>
#include "buf.h"
/* JSON micro-parser */
char *json_str(const char *json, const char *key);
char **json_array(const char *json, int *n);
/* URL helpers */
void urldecode(char *s);
char *qparam(const char *qs, const char *key);
/* Escaping */
void html_esc(Buf *b, const char *s);
void js_esc(Buf *b, const char *s);
void fwrite_json_str(FILE *f, const char *s);
/* String utils */
int str_icontains(const char *hay, const char *needle);