mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-01 02:47:59 +02:00
feat|perf: generic&efficient desktop&config parser
This commit is contained in:
17
include/desktop.h
Normal file
17
include/desktop.h
Normal 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
|
Reference in New Issue
Block a user