summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-10 17:14:17 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-10 17:14:17 +0200
commit754ff9123ec9e2dd317351cd7c631ffa9f76b343 (patch)
tree8f375f7134b38e01cc0622d0ceb04f080faa18ab /deadbeef.h
parent7cca327d228d6314e30fc5418cae0b9fbd4691cb (diff)
ported all custom configs to common config
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 9af6ff68..29594658 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -100,6 +100,12 @@ typedef struct {
DB_playItem_t *song;
} DB_event_song_t;
+typedef struct DB_conf_item_s {
+ char *key;
+ char *value;
+ struct DB_conf_item_s *next;
+} DB_conf_item_t;
+
// event callback type
typedef int (*DB_callback_t)(DB_event_t *, uintptr_t data);
@@ -218,6 +224,12 @@ typedef struct {
int64_t (*fgetlength) (DB_FILE *stream);
// message passing
int (*sendmessage) (uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2);
+ // configuration access
+ const char * (*conf_get_str) (const char *key, const char *def);
+ float (*conf_get_float) (const char *key, float def);
+ int (*conf_get_int) (const char *key, int def);
+ void (*conf_set_str) (const char *key, const char *val);
+ DB_conf_item_t * (*conf_find) (const char *group, DB_conf_item_t *prev);
} DB_functions_t;
// base plugin interface