summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-09 22:02:13 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-09 22:02:13 +0100
commit8d304d8ae5c6285f3ba1ccda097f7d89b3b5a638 (patch)
treef1204747d0b94cce95d9e2e1dfdae0eff1952b4c
parentfbf4cbecdb18c10a010c2f35d28f19625867e1db (diff)
added GUI settings to cdaudio plugin
-rw-r--r--plugins/cdda/cdda.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c
index 56dd44a4..5b6eb88a 100644
--- a/plugins/cdda/cdda.c
+++ b/plugins/cdda/cdda.c
@@ -422,6 +422,13 @@ cda_stop (void) {
static const char *exts[] = { "cda", "nrg", NULL };
static const char *filetypes[] = { "cdda", NULL };
+static const char settings_dlg[] =
+ "property \"Use CDDB/FreeDB\" checkbox cdda.freedb.enable 1;\n"
+ "property \"CDDB url (e.g. 'freedb.org')\" entry cdda.freedb.host freedb.org;\n"
+ "property \"CDDB port number (e.g. '888')\" entry cdda.freedb.port 888;\n"
+ "property \"Prefer CDDB protocol over HTTP\" checkbox cdda.protocol 1;"
+;
+
// define plugin interface
static DB_decoder_t plugin = {
DB_PLUGIN_SET_API_VERSION
@@ -435,6 +442,7 @@ static DB_decoder_t plugin = {
.plugin.website = "http://deadbeef.sf.net",
.plugin.start = cda_start,
.plugin.stop = cda_stop,
+ .plugin.configdialog = settings_dlg,
.init = cda_init,
.free = cda_free,
.read_int16 = cda_read_int16,