summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-06-04 08:50:26 +0200
committerGravatar waker <wakeroid@gmail.com>2012-06-04 08:50:26 +0200
commitd23b8dd63bd2821dd1a4103504af143495dc0ae1 (patch)
tree285a715089f7ecf61f410ce858044b8b9b740bb2 /deadbeef.h
parent4a41e6c82b0ec65a170fcd9e4ba9284d72566199 (diff)
fixed accidental API break caused by run_dialog
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 51e39b10..a8f49039 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -1114,6 +1114,9 @@ typedef struct {
const char *layout;
void (*set_param) (const char *key, const char *value);
void (*get_param) (const char *key, char *value, int len, const char *def);
+
+ // parent was added in 1.4 API
+ void *parent;
} ddb_dialog_t;
enum {
@@ -1129,12 +1132,9 @@ enum {
typedef struct DB_gui_s {
DB_plugin_t plugin;
- // obsolete, don't use
- int (*run_dialog_1) (ddb_dialog_t *dlg, uint32_t buttons, int (*callback)(int button, void *ctx), void *ctx);
-
// returns response code (ddb_button_*)
// buttons is a bitset, e.g. (1<<ddb_button_ok)|(1<<ddb_button_cancel)
- int (*run_dialog) (void *parentwindow, ddb_dialog_t *dlg, uint32_t buttons, int (*callback)(int button, void *ctx), void *ctx);
+ int (*run_dialog) (ddb_dialog_t *dlg, uint32_t buttons, int (*callback)(int button, void *ctx), void *ctx);
} DB_gui_t;
// playlist plugin