Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
00001 /* 00002 * misc.h 00003 * Copyright 2010-2011 John Lindgren 00004 * 00005 * This file is part of Audacious. 00006 * 00007 * Audacious is free software: you can redistribute it and/or modify it under 00008 * the terms of the GNU General Public License as published by the Free Software 00009 * Foundation, version 2 or version 3 of the License. 00010 * 00011 * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY 00012 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00013 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along with 00016 * Audacious. If not, see <http://www.gnu.org/licenses/>. 00017 * 00018 * The Audacious team does not consider modular code linking to Audacious or 00019 * using our public API to be a derived work. 00020 */ 00021 00022 #ifndef AUDACIOUS_MISC_H 00023 #define AUDACIOUS_MISC_H 00024 00025 #include <glib.h> 00026 #include <audacious/api.h> 00027 #include <audacious/types.h> 00028 #include <libaudcore/vfs.h> 00029 #include <libaudcore/tuple.h> 00030 00031 enum { 00032 AUD_PATH_BIN_DIR, 00033 AUD_PATH_DATA_DIR, 00034 AUD_PATH_PLUGIN_DIR, 00035 AUD_PATH_LOCALE_DIR, 00036 AUD_PATH_DESKTOP_FILE, 00037 AUD_PATH_ICON_FILE, 00038 AUD_PATH_USER_DIR, 00039 AUD_PATH_USER_PLUGIN_DIR, 00040 AUD_PATH_PLAYLISTS_DIR, 00041 AUD_PATH_PLAYLIST_FILE, 00042 AUD_PATH_GTKRC_FILE, 00043 AUD_PATH_COUNT 00044 }; 00045 00046 typedef struct { 00047 gchar * name; 00048 gfloat preamp, bands[10]; 00049 } EqualizerPreset; 00050 00051 enum { 00052 AUD_MENU_MAIN, 00053 AUD_MENU_PLAYLIST, 00054 AUD_MENU_PLAYLIST_RCLICK, 00055 AUD_MENU_PLAYLIST_ADD, 00056 AUD_MENU_PLAYLIST_REMOVE, 00057 AUD_MENU_PLAYLIST_SELECT, 00058 AUD_MENU_PLAYLIST_MISC, 00059 AUD_MENU_COUNT}; 00060 00061 typedef void (* MenuFunc) (void); 00062 00063 typedef gint16 VisFreqData[2][256]; 00064 typedef gint16 VisPCMData[2][512]; 00065 00066 typedef struct { 00067 gint time, nch; 00068 gint length; /* obsolete, always 512 */ 00069 VisPCMData data; 00070 } VisNode; 00071 00072 typedef void (* VisHookFunc) (const VisNode * node, void * user); 00073 00074 #define AUD_API_NAME MiscAPI 00075 #define AUD_API_SYMBOL misc_api 00076 00077 #ifdef _AUDACIOUS_CORE 00078 00079 #include "api-local-begin.h" 00080 #include "misc-api.h" 00081 #include "api-local-end.h" 00082 00083 #define create_widgets(b, w, a) create_widgets_with_domain (b, w, a, PACKAGE) 00084 00085 #else 00086 00087 #include <audacious/api-define-begin.h> 00088 #include <audacious/misc-api.h> 00089 #include <audacious/api-define-end.h> 00090 00091 #include <audacious/api-alias-begin.h> 00092 #include <audacious/misc-api.h> 00093 #include <audacious/api-alias-end.h> 00094 00095 #define aud_create_widgets(b, w, a) aud_create_widgets_with_domain (b, w, a, \ 00096 PACKAGE) 00097 00098 #endif 00099 00100 #undef AUD_API_NAME 00101 #undef AUD_API_SYMBOL 00102 00103 #endif 00104 00105 #ifdef AUD_API_DECLARE 00106 00107 #define AUD_API_NAME MiscAPI 00108 #define AUD_API_SYMBOL misc_api 00109 00110 #include "api-define-begin.h" 00111 #include "misc-api.h" 00112 #include "api-define-end.h" 00113 00114 #include "api-declare-begin.h" 00115 #include "misc-api.h" 00116 #include "api-declare-end.h" 00117 00118 #undef AUD_API_NAME 00119 #undef AUD_API_SYMBOL 00120 00121 #endif