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
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* 1. Redistributions of source code must retain the above copyright notice,
9
* this list of conditions, and the following disclaimer.
10
*
11
* 2. Redistributions in binary form must reproduce the above copyright notice,
12
* this list of conditions, and the following disclaimer in the documentation
13
* provided with the distribution.
14
*
15
* This software is provided "as is" and without any warranty, express or
16
* implied. In no event shall the authors be liable for any damages arising from
17
* the use of this software.
18
*/
19
20
#ifndef AUDACIOUS_MISC_H
21
#define AUDACIOUS_MISC_H
22
23
#include <
audacious/api.h
>
24
#include <
audacious/types.h
>
25
#include <
libaudcore/index.h
>
26
#include <
libaudcore/tuple.h
>
27
#include <
libaudcore/vfs.h
>
28
29
enum
{
30
AUD_PATH_BIN_DIR
,
31
AUD_PATH_DATA_DIR
,
32
AUD_PATH_PLUGIN_DIR
,
33
AUD_PATH_LOCALE_DIR
,
34
AUD_PATH_DESKTOP_FILE
,
35
AUD_PATH_ICON_FILE
,
36
AUD_PATH_USER_DIR
,
37
AUD_PATH_USER_PLUGIN_DIR
,
38
AUD_PATH_PLAYLISTS_DIR
,
39
AUD_PATH_GTKRC_FILE
,
/* deprecated */
40
AUD_PATH_COUNT
41
};
42
43
typedef
struct
{
44
char
*
name
;
45
float
preamp
, bands[10];
46
}
EqualizerPreset
;
47
48
enum
{
OUTPUT_RESET_EFFECTS_ONLY
,
OUTPUT_RESET_SOFT
,
OUTPUT_RESET_HARD
};
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.2