summaryrefslogtreecommitdiff
path: root/utils/mcpu-config.h
diff options
context:
space:
mode:
authorkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
committerkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
commit065da3509019b15dd0e678072e6be629e5330bef (patch)
tree69c934c9e786ac048b4fbe8f4c4c5571661521f4 /utils/mcpu-config.h
parentd130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff)
downloadlibmcpu-0.4.0.tar.xz
Version 0.4.00.4.0
Diffstat (limited to 'utils/mcpu-config.h')
-rw-r--r--utils/mcpu-config.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/utils/mcpu-config.h b/utils/mcpu-config.h
new file mode 100644
index 0000000..5d9ab0e
--- /dev/null
+++ b/utils/mcpu-config.h
@@ -0,0 +1,30 @@
+#ifndef __MCPU_CONFIG_H__
+#define __MCPU_CONFIG_H__ 1
+
+#include <stdio.h>
+
+typedef struct mcpu_config_entry mcpu_config_entry;
+struct mcpu_config_entry
+{
+ char *name;
+ char *value;
+ mcpu_config_entry *next;
+};
+
+typedef struct mcpu_config mcpu_config;
+struct mcpu_config
+{
+ mcpu_config_entry *first;
+ int verbose;
+};
+
+void mcpu_config_init( mcpu_config *config );
+void mcpu_config_free( mcpu_config *config );
+int mcpu_config_read( mcpu_config *config, const char *filename,
+ int missing_is_error );
+const char *mcpu_config_get( const mcpu_config *config, const char *name );
+int mcpu_config_set( mcpu_config *config, const char *name,
+ const char *value );
+int mcpu_config_dump( const mcpu_config *config, FILE *stream );
+
+#endif /* __MCPU_CONFIG_H__ */