summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c8
-rw-r--r--src/config.h6
2 files changed, 10 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index e8497d2..ff3b7ee 100644
--- a/src/config.c
+++ b/src/config.c
@@ -38,10 +38,10 @@ enum type {
};
union callback {
- void (*boolean_cb)(const gchar *, const gboolean, gpointer);
- void (*integer_cb)(const gchar *, const gint, gpointer);
- void (*double_cb)(const gchar *, const gdouble, gpointer);
- void (*string_cb)(const gchar *, const gchar *, gpointer);
+ MqConfigBooleanCallback boolean_cb;
+ MqConfigIntegerCallback integer_cb;
+ MqConfigDoubleCallback double_cb;
+ MqConfigStringCallback string_cb;
};
struct callbacks {
diff --git a/src/config.h b/src/config.h
index 60aead7..1f1fb67 100644
--- a/src/config.h
+++ b/src/config.h
@@ -34,6 +34,12 @@ struct MqConfig {
GHashTable *types_and_cbs;
};
+typedef void (*MqConfigBooleanCallback)(const gchar *, const gboolean,
+ gpointer);
+typedef void (*MqConfigIntegerCallback)(const gchar *, const gint, gpointer);
+typedef void (*MqConfigDoubleCallback)(const gchar *, const gdouble, gpointer);
+typedef void (*MqConfigStringCallback)(const gchar *, const gchar *, gpointer);
+
MqConfig *
mq_config_new(const gchar *profile);