aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigData.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 18:54:17 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 21:36:11 +0100
commit72070f292b98ee8b38217b43dc046b047bcccd8e (patch)
tree929a3e1b2a66a343d3b8ed9194d104a12bb2de91 /src/ConfigData.hxx
parent823c618d241e7e45f31981c437215bc35664c385 (diff)
downloadmpd-72070f292b98ee8b38217b43dc046b047bcccd8e.tar.gz
mpd-72070f292b98ee8b38217b43dc046b047bcccd8e.tar.xz
mpd-72070f292b98ee8b38217b43dc046b047bcccd8e.zip
ConfigFile: add struct ConfigData
Diffstat (limited to '')
-rw-r--r--src/ConfigData.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx
index d156cef18..98b74635f 100644
--- a/src/ConfigData.hxx
+++ b/src/ConfigData.hxx
@@ -20,11 +20,19 @@
#ifndef MPD_CONFIG_DATA_HXX
#define MPD_CONFIG_DATA_HXX
+#include "ConfigOption.hxx"
#include "gerror.h"
#include "gcc.h"
+#ifdef __cplusplus
+#include <glib.h>
+#include <array>
+#endif
+
#include <stdbool.h>
+#ifdef __cplusplus
+
struct block_param {
char *name;
char *value;
@@ -37,6 +45,8 @@ struct block_param {
bool used;
};
+#endif
+
struct config_param {
char *value;
unsigned int line;
@@ -52,6 +62,14 @@ struct config_param {
};
#ifdef __cplusplus
+
+struct ConfigData {
+ std::array<GSList *, std::size_t(CONF_MAX)> params;
+};
+
+#endif
+
+#ifdef __cplusplus
extern "C" {
#endif