feat|perf: generic&efficient desktop&config parser

This commit is contained in:
2025-06-10 23:44:09 +02:00
parent d13ebfff4e
commit 22c3f7c896
10 changed files with 178 additions and 88 deletions

17
include/desktop.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef DESKTOPH_
#define DESKTOPH_
#include <stdbool.h>
#include <stdio.h>
#include "macros.h"
struct status {
bool finish;
int ret;
};
int read_desktop(FILE* fd, void* ctx, struct status (*cb)(void* ctx, char* NULLABLE table,
char* key, char* value));
#endif