Mercurial > audlegacy
diff src/audacious/interface.h @ 4723:07b4e2a5eedb
commit initial version of InterfaceOps
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Sun, 13 Jul 2008 12:50:31 +0200 |
| parents | 48cdebc174ef |
| children | 4e38324b5e9f |
line wrap: on
line diff
--- a/src/audacious/interface.h Sun Jul 13 12:44:23 2008 +0200 +++ b/src/audacious/interface.h Sun Jul 13 12:50:31 2008 +0200 @@ -28,11 +28,24 @@ #ifndef __AUDACIOUS2_INTERFACE_H__ #define __AUDACIOUS2_INTERFACE_H__ +#include <gtk/gtk.h> + typedef struct { + void (*create_prefs_window)(void); + void (*show_prefs_window)(void); + void (*hide_prefs_window)(void); + + void (*filebrowser_show)(gboolean play_button); + void (*urlopener_show)(void); +} InterfaceOps; + +typedef struct _Interface { gchar *id; /* simple ID like 'skinned' */ gchar *desc; /* description like 'Skinned Interface' */ gboolean (*init)(void); /* init UI */ gboolean (*fini)(void); /* shutdown UI */ + + InterfaceOps *ops; } Interface; void interface_register(Interface *i);
