diff src/audacious/interface.c @ 4797:9b9bcf252a10

- provide a way to query current interface. - revive visualization when legacy interface is chosen.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 11 Oct 2008 07:43:44 +0900
parents ad06ffc54c23
children
line wrap: on
line diff
--- a/src/audacious/interface.c	Sat Oct 11 02:32:37 2008 +0900
+++ b/src/audacious/interface.c	Sat Oct 11 07:43:44 2008 +0900
@@ -30,6 +30,7 @@
 #include "ui_credits.h"
 
 static mowgli_dictionary_t *interface_dict_ = NULL;
+static Interface *current_interface = NULL;
 
 static InterfaceOps interface_ops = {
     .create_prefs_window = create_prefs_window,
@@ -62,6 +63,7 @@
 void
 interface_run(Interface *i)
 {
+    current_interface = i;
     i->ops = &interface_ops;
     i->init();
 }
@@ -81,3 +83,9 @@
 
     return mowgli_dictionary_retrieve(interface_dict_, id);
 }
+
+const Interface *
+interface_get_current(void)
+{
+    return current_interface;
+}