Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
Main Page
Related Pages
Classes
Files
File List
File Members
src
audacious
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
{
32
AUD_PATH_BIN_DIR
,
33
AUD_PATH_DATA_DIR
,
34
AUD_PATH_PLUGIN_DIR
,
35
AUD_PATH_LOCALE_DIR
,
36
AUD_PATH_DESKTOP_FILE
,
37
AUD_PATH_ICON_FILE
,
38
AUD_PATH_USER_DIR
,
39
AUD_PATH_USER_PLUGIN_DIR
,
40
AUD_PATH_PLAYLISTS_DIR
,
41
AUD_PATH_GTKRC_FILE
,
42
AUD_PATH_COUNT
43
};
44
45
typedef
struct
{
46
char
*
name
;
47
float
preamp
, bands[10];
48
}
EqualizerPreset
;
49
50
enum
{
51
AUD_MENU_MAIN
,
52
AUD_MENU_PLAYLIST
,
53
AUD_MENU_PLAYLIST_RCLICK
,
54
AUD_MENU_PLAYLIST_ADD
,
55
AUD_MENU_PLAYLIST_REMOVE
,
56
AUD_MENU_PLAYLIST_SELECT
,
57
AUD_MENU_PLAYLIST_MISC
,
58
AUD_MENU_COUNT
};
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() */
67
AUD_VIS_TYPES
};
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
85
#include <
audacious/api-define-begin.h
>
86
#include <
audacious/misc-api.h
>
87
#include <
audacious/api-define-end.h
>
88
89
#include <
audacious/api-alias-begin.h
>
90
#include <
audacious/misc-api.h
>
91
#include <
audacious/api-alias-end.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
Generated by
1.8.1.1