<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Audacious: interface.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Audacious <span id="projectnumber">$Id:Doxyfile42802007-03-2104:39:00Znenolod$</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <h1>interface.h</h1> </div> </div> <div class="contents"> <a href="interface_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * Audacious2</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (c) 2008 William Pitcock <nenolod@dereferenced.org></span> <a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2008-2009 Tomasz Moń <desowin@gmail.com></span> <a name="l00005"></a>00005 <span class="comment"> *</span> <a name="l00006"></a>00006 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span> <a name="l00007"></a>00007 <span class="comment"> * it under the terms of the GNU General Public License as published by</span> <a name="l00008"></a>00008 <span class="comment"> * the Free Software Foundation; under version 3 of the License.</span> <a name="l00009"></a>00009 <span class="comment"> *</span> <a name="l00010"></a>00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"> *</span> <a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span> <a name="l00016"></a>00016 <span class="comment"> * along with this program. If not, see <http://www.gnu.org/licenses>.</span> <a name="l00017"></a>00017 <span class="comment"> *</span> <a name="l00018"></a>00018 <span class="comment"> * The Audacious team does not consider modular code linking to</span> <a name="l00019"></a>00019 <span class="comment"> * Audacious or using our public API to be a derived work.</span> <a name="l00020"></a>00020 <span class="comment"> */</span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="comment">/*</span> <a name="l00023"></a>00023 <span class="comment"> * This is the Interface API.</span> <a name="l00024"></a>00024 <span class="comment"> *</span> <a name="l00025"></a>00025 <span class="comment"> * Everything here is like totally subject to change.</span> <a name="l00026"></a>00026 <span class="comment"> * --nenolod</span> <a name="l00027"></a>00027 <span class="comment"> */</span> <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="preprocessor">#ifndef __AUDACIOUS2_INTERFACE_H__</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define __AUDACIOUS2_INTERFACE_H__</span> <a name="l00031"></a>00031 <span class="preprocessor"></span> <a name="l00032"></a>00032 <span class="preprocessor">#include <glib.h></span> <a name="l00033"></a>00033 <span class="preprocessor">#include <audacious/types.h></span> <a name="l00034"></a>00034 <a name="l00035"></a><a class="code" href="structInterfaceOps.html">00035</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00036"></a>00036 <span class="comment">/* GtkWidget * * (* create_prefs_window) (void); */</span> <a name="l00037"></a><a class="code" href="structInterfaceOps.html#a3acf7b1b28dcd9dbdabef6939b5cbcb4">00037</a> <span class="keywordtype">void</span> * * (* create_prefs_window) (void); <a name="l00038"></a><a class="code" href="structInterfaceOps.html#a712872a7245f78b26734ef08265ed3da">00038</a> void (*<a class="code" href="ui__preferences_8c.html#a3011442f0287d02e2269941791082cc4">show_prefs_window</a>)(void); <a name="l00039"></a><a class="code" href="structInterfaceOps.html#a9464b6790a6f20c6ddff04d51c1e834c">00039</a> void (*<a class="code" href="ui__preferences_8c.html#a0e0c2384c7329b554179511008059fbf">hide_prefs_window</a>)(void); <a name="l00040"></a><a class="code" href="structInterfaceOps.html#a117d2b2858e6425c7e16c61832579303">00040</a> void (*<a class="code" href="ui__preferences_8c.html#a75d8e0a11cc9be73416732d630f6fb38">destroy_prefs_window</a>)(void); <a name="l00041"></a>00041 <span class="comment">/* gint (* prefswin_page_new) (GtkWidget * container, const gchar * name,</span> <a name="l00042"></a>00042 <span class="comment"> const gchar * imgurl); */</span> <a name="l00043"></a><a class="code" href="structInterfaceOps.html#a56f8cf88586725bd6f02260e1dfbe3c8">00043</a> <a class="code" href="misc-api_8h.html#acf599c059f43e0cca83145eb6b0c93cd">gint</a> (* <a class="code" href="ui__preferences_8c.html#a6ec6b38ff87a139b46b05db5c8cff100">prefswin_page_new</a>) (<span class="keywordtype">void</span> * container, <span class="keyword">const</span> gchar * name, <a name="l00044"></a>00044 <span class="keyword">const</span> gchar * imgurl); <a name="l00045"></a>00045 } <a class="code" href="structInterfaceOps.html">InterfaceOps</a>; <a name="l00046"></a>00046 <a name="l00047"></a><a class="code" href="structInterfaceCbs.html">00047</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00048"></a><a class="code" href="structInterfaceCbs.html#af402d3e3e06decc14f895424257447f6">00048</a> void (*<a class="code" href="ui__preferences_8c.html#a3011442f0287d02e2269941791082cc4">show_prefs_window</a>)(<a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> show); <a name="l00049"></a><a class="code" href="structInterfaceCbs.html#ae8a6a42981a0dc9327bceff7faf0f73b">00049</a> void (*run_filebrowser)(<a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> play_button); <a name="l00050"></a><a class="code" href="structInterfaceCbs.html#a4c8ebd536ac00df79cfd9f184ecc78e6">00050</a> void (*hide_filebrowser)(void); <a name="l00051"></a><a class="code" href="structInterfaceCbs.html#ad1a3918354e8f69ec945afef3fc1a727">00051</a> void (*toggle_visibility)(void); <a name="l00052"></a><a class="code" href="structInterfaceCbs.html#aca5c846f37d7ec7fd87305c7b8bb56dd">00052</a> void (*show_error)(<span class="keyword">const</span> gchar * markup); <a name="l00053"></a><a class="code" href="structInterfaceCbs.html#a3c1fcc604f36de18f278d7fe777334b0">00053</a> void (*show_jump_to_track)(void); <a name="l00054"></a><a class="code" href="structInterfaceCbs.html#ab813890ae9fffe36c68cdc0c8f3a5469">00054</a> void (*hide_jump_to_track)(void); <a name="l00055"></a><a class="code" href="structInterfaceCbs.html#a7311facc9748d0db77ceab6a293ac6a7">00055</a> void (*show_about_window)(void); <a name="l00056"></a><a class="code" href="structInterfaceCbs.html#a40dd97f713ea32a998c43a2b29b17fe7">00056</a> void (*hide_about_window)(void); <a name="l00057"></a><a class="code" href="structInterfaceCbs.html#a499e6adf288afef02acd8d7641540e61">00057</a> void (*toggle_shuffle)(void); <a name="l00058"></a><a class="code" href="structInterfaceCbs.html#a6ec147d614113c1bd62e1bb71763f5be">00058</a> void (*toggle_repeat)(void); <a name="l00059"></a>00059 <span class="comment">/* GtkWidget * (* run_gtk_plugin) (GtkWidget * parent, const gchar * name); */</span> <a name="l00060"></a><a class="code" href="structInterfaceCbs.html#a5a860eb360b51ff14d966ad36ddba5eb">00060</a> <span class="keywordtype">void</span> * (* run_gtk_plugin) (<span class="keywordtype">void</span> * parent, <span class="keyword">const</span> gchar * name); <a name="l00061"></a>00061 <span class="comment">/* GtkWidget * (* stop_gtk_plugin) (GtkWidget * parent); */</span> <a name="l00062"></a><a class="code" href="structInterfaceCbs.html#a4d84eb48f51992caf3fd44364bd1a50c">00062</a> <span class="keywordtype">void</span> * (* stop_gtk_plugin) (<span class="keywordtype">void</span> * parent); <a name="l00063"></a>00063 } <a class="code" href="structInterfaceCbs.html">InterfaceCbs</a>; <a name="l00064"></a>00064 <a name="l00065"></a><a class="code" href="struct__Interface.html">00065</a> <span class="keyword">struct </span><a class="code" href="struct__Interface.html">_Interface</a> { <a name="l00066"></a><a class="code" href="struct__Interface.html#a64db5c2cc0ae8b23f3c89265df606327">00066</a> gchar *<a class="code" href="struct__Interface.html#a64db5c2cc0ae8b23f3c89265df606327">id</a>; <span class="comment">/* simple ID like 'skinned' */</span> <a name="l00067"></a><a class="code" href="struct__Interface.html#ac2e07abb87e2ceb29882dc73dde12928">00067</a> gchar *<a class="code" href="struct__Interface.html#ac2e07abb87e2ceb29882dc73dde12928">desc</a>; <span class="comment">/* description like 'Skinned Interface' */</span> <a name="l00068"></a><a class="code" href="struct__Interface.html#a6a9fd3afb3061d5631e4e5b2b33c4f34">00068</a> <a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> (*<a class="code" href="struct__Interface.html#a6a9fd3afb3061d5631e4e5b2b33c4f34">init</a>)(<a class="code" href="structInterfaceCbs.html">InterfaceCbs</a> *cbs); <span class="comment">/* init UI */</span> <a name="l00069"></a><a class="code" href="struct__Interface.html#abacf96c01279cfc16c2e1672faa965ee">00069</a> <a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> (*<a class="code" href="struct__Interface.html#abacf96c01279cfc16c2e1672faa965ee">fini</a>)(void); <span class="comment">/* shutdown UI */</span> <a name="l00070"></a>00070 <a name="l00071"></a><a class="code" href="struct__Interface.html#a2f5154b9047b7ac08a3c835a300a9e01">00071</a> <a class="code" href="structInterfaceOps.html">InterfaceOps</a> *<a class="code" href="struct__Interface.html#a2f5154b9047b7ac08a3c835a300a9e01">ops</a>; <a name="l00072"></a>00072 }; <a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="preprocessor">#ifdef _AUDACIOUS_CORE</span> <a name="l00075"></a>00075 <span class="preprocessor"></span> <a name="l00076"></a>00076 <span class="preprocessor">#include <gtk/gtk.h></span> <a name="l00077"></a>00077 <span class="preprocessor">#include <audacious/plugins.h></span> <a name="l00078"></a>00078 <a name="l00079"></a>00079 <a class="code" href="structPluginHandle.html">PluginHandle</a> * <a class="code" href="interface_8c.html#a283efc4505422f54f4482a65871b8bef">interface_get_default</a> (<span class="keywordtype">void</span>); <a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a22570b62657e9a0fd9084fc58009aba7">interface_set_default</a> (<a class="code" href="structPluginHandle.html">PluginHandle</a> * plugin); <a name="l00081"></a>00081 <a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> <a class="code" href="interface_8c.html#a7d6b4a27c4b6fa4ea64e9267582fc52d">interface_load</a> (<a class="code" href="structPluginHandle.html">PluginHandle</a> * plugin); <a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a7ae3e921108fde88394bfc2e7ba00890">interface_unload</a> (<span class="keywordtype">void</span>); <a name="l00083"></a>00083 <a name="l00084"></a>00084 <span class="comment">/* These functions have to be called from main thread</span> <a name="l00085"></a>00085 <span class="comment"> Use event_queue if you need to call those from other threads */</span> <a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#ad5c309e6b2e91e15b77f5c1e3e869161">interface_show_prefs_window</a>(<a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> show); <a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#ad3bb078c6dd027424eb1f66cfc84691c">interface_run_filebrowser</a>(<a class="code" href="configdb-api_8h.html#a3ac4dad7ee7fd2890139bff9a134ee9a">gboolean</a> play_button); <a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#aac58128eba76a53cef7a4e28571d40aa">interface_hide_filebrowser</a>(<span class="keywordtype">void</span>); <a name="l00089"></a>00089 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#aa135d7f382b6d09de674be073864c47b">interface_toggle_visibility</a>(<span class="keywordtype">void</span>); <a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a20eccf7ad91501d1aaa36a8d85a62f78">interface_show_error_message</a>(<span class="keyword">const</span> gchar * markup); <a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a02511027b3385d6a7248463c7559b194">interface_show_jump_to_track</a>(<span class="keywordtype">void</span>); <a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#aea7f3ca8c1efe8eab87f7fa0c963458d">interface_add_plugin_widget</a> (<a class="code" href="structPluginHandle.html">PluginHandle</a> * plugin, GtkWidget * widget); <a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a452ee11791759fac6cf638761ac16f7c">interface_remove_plugin_widget</a> (<a class="code" href="structPluginHandle.html">PluginHandle</a> * plugin, GtkWidget * widget); <a name="l00094"></a>00094 <span class="keywordtype">void</span> interface_stop_gtk_plugin (<span class="keywordtype">void</span> * parent); <a name="l00095"></a>00095 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a9bb69a54c8a126615504b241d4f4993a">interface_toggle_shuffle</a>(<span class="keywordtype">void</span>); <a name="l00096"></a>00096 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a7e7e227f997b88b99305e799aac1643a">interface_toggle_repeat</a>(<span class="keywordtype">void</span>); <a name="l00097"></a>00097 <a name="l00098"></a>00098 <span class="keywordtype">void</span> <a class="code" href="interface_8c.html#a50e853f1c02da78fb025e152a5b94722">register_interface_hooks</a>(<span class="keywordtype">void</span>); <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="preprocessor">#endif</span> <a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#endif</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Sun Apr 17 2011 for Audacious by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>