Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
interface.h
Go to the documentation of this file.
00001 /*
00002  * Audacious2
00003  * Copyright (c) 2008 William Pitcock <nenolod@dereferenced.org>
00004  * Copyright (c) 2008-2009 Tomasz Moń <desowin@gmail.com>
00005  * Copyright (c) 2011 John Lindgren <john.lindgren@tds.net>
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; under version 3 of the License.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program.  If not, see <http://www.gnu.org/licenses>.
00018  *
00019  * The Audacious team does not consider modular code linking to
00020  * Audacious or using our public API to be a derived work.
00021  */
00022 
00023 #ifndef __AUDACIOUS2_INTERFACE_H__
00024 #define __AUDACIOUS2_INTERFACE_H__
00025 
00026 #include <gtk/gtk.h>
00027 #include <audacious/plugins.h>
00028 
00029 gboolean interface_load (PluginHandle * plugin);
00030 void interface_unload (void);
00031 
00032 /* These functions have to be called from main thread
00033    Use event_queue if you need to call those from other threads */
00034 
00035 void interface_show (gboolean show);
00036 gboolean interface_is_shown (void);
00037 gboolean interface_is_focused (void);
00038 
00039 void interface_show_error (const gchar * markup);
00040 void interface_show_filebrowser (gboolean play_button);
00041 void interface_show_jump_to_track (void);
00042 
00043 void interface_add_plugin_widget (PluginHandle * plugin, GtkWidget * widget);
00044 void interface_remove_plugin_widget (PluginHandle * plugin, GtkWidget * widget);
00045 
00046 void register_interface_hooks (void);
00047 
00048 PluginHandle * iface_plugin_probe (void);
00049 PluginHandle * iface_plugin_get_current (void);
00050 gboolean iface_plugin_set_current (PluginHandle * plugin);
00051 
00052 #endif