Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
misc.h
Go to the documentation of this file.
1 /*
2  * misc.h
3  * Copyright 2010-2011 John Lindgren
4  *
5  * This file is part of Audacious.
6  *
7  * Audacious is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, version 2 or version 3 of the License.
10  *
11  * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13  * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * Audacious. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * The Audacious team does not consider modular code linking to Audacious or
19  * using our public API to be a derived work.
20  */
21 
22 #ifndef AUDACIOUS_MISC_H
23 #define AUDACIOUS_MISC_H
24 
25 #include <audacious/api.h>
26 #include <audacious/types.h>
27 #include <libaudcore/index.h>
28 #include <libaudcore/tuple.h>
29 #include <libaudcore/vfs.h>
30 
31 enum {
43 };
44 
45 typedef struct {
46  char * name;
47  float preamp, bands[10];
49 
50 enum {
59 
60 typedef void (* MenuFunc) (void);
61 
62 enum {
63  AUD_VIS_TYPE_CLEAR, /* like VisPlugin::clear() */
64  AUD_VIS_TYPE_MONO_PCM, /* like VisPlugin::render_mono_pcm() */
65  AUD_VIS_TYPE_MULTI_PCM, /* like VisPlugin::render_multi_pcm() */
66  AUD_VIS_TYPE_FREQ, /* like VisPlugin::render_freq() */
68 
69 /* generic type; does not correspond to actual function types */
70 typedef void (* VisFunc) (void);
71 
72 #define AUD_API_NAME MiscAPI
73 #define AUD_API_SYMBOL misc_api
74 
75 #ifdef _AUDACIOUS_CORE
76 
77 #include "api-local-begin.h"
78 #include "misc-api.h"
79 #include "api-local-end.h"
80 
81 #define create_widgets(b, w, a) create_widgets_with_domain (b, w, a, PACKAGE)
82 
83 #else
84 
86 #include <audacious/misc-api.h>
88 
90 #include <audacious/misc-api.h>
92 
93 #define aud_create_widgets(b, w, a) aud_create_widgets_with_domain (b, w, a, \
94  PACKAGE)
95 
96 #endif
97 
98 #undef AUD_API_NAME
99 #undef AUD_API_SYMBOL
100 
101 #endif
102 
103 #ifdef AUD_API_DECLARE
104 
105 #define AUD_API_NAME MiscAPI
106 #define AUD_API_SYMBOL misc_api
107 
108 #include "api-define-begin.h"
109 #include "misc-api.h"
110 #include "api-define-end.h"
111 
112 #include "api-declare-begin.h"
113 #include "misc-api.h"
114 #include "api-declare-end.h"
115 
116 #undef AUD_API_NAME
117 #undef AUD_API_SYMBOL
118 
119 #endif