initial: modular iptv-dl with runtime config from ~/.iptv-downloader/config.json

This commit is contained in:
2026-06-09 00:31:08 +02:00
commit f8af224580
48 changed files with 2140 additions and 0 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);