summaryrefslogtreecommitdiff
path: root/cfgparse.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-02 21:46:07 +1000
committerquou <quou@disroot.org>2024-06-02 21:47:26 +1000
commit62b4a3ededd237f4b4850d91c052585e2f687499 (patch)
tree25bf590a634c6c71f399cf9b1d620500f06b8b9f /cfgparse.h
parent2e761bdb8badecdbda2925a056a6d5aa3e3cac83 (diff)
Switched to luigi, parsing out FLAC metadata.
Diffstat (limited to 'cfgparse.h')
-rw-r--r--cfgparse.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/cfgparse.h b/cfgparse.h
deleted file mode 100644
index f8eeedb..0000000
--- a/cfgparse.h
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef cfgparse_h
-#define cfgparse_h
-
-#include "memory.h"
-
-typedef enum {
- cfg_type_int,
- cfg_type_string,
- cfg_type_data,
- cfg_type_none
-} cfg_Type;
-
-typedef struct {
- int size;
- char* data;
-} cfg_Data;
-
-typedef struct cfg_Prop {
- char name[28];
- cfg_Type type;
- union {
- int num;
- cfg_Data data;
- char* str;
- } as;
- struct cfg_Prop* next;
-} cfg_Prop;
-
-typedef struct cfg_Object {
- char name[28];
- int prop_count;
- cfg_Prop* props;
- struct cfg_Object* next;
-} cfg_Object;
-
-cfg_Object* cfg_parse(const char* src, Arena* arena);
-const cfg_Prop* find_prop(
- const cfg_Object* obj,
- const char* name
-);
-const cfg_Prop* find_prop_of(
- const cfg_Object* obj,
- const char* name,
- cfg_Type type
-);
-
-int find_int_default(
- const cfg_Object* obj,
- const char* name,
- int def
-);
-const char* find_string_default(
- const cfg_Object* obj,
- const char* name,
- const char* def
-);
-
-#endif