Mercurial > audlegacy
annotate src/audacious/main.h @ 4412:180996fcf12a
bmp_config_* -> aud_config_*
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 31 Mar 2008 06:36:41 +0300 |
parents | 8cb646ddae62 |
children | de33c83aa06f |
rev | line source |
---|---|
2313 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Based on BMP: | |
5 * Copyright (C) 2003-2004 BMP development team | |
6 * | |
7 * Based on XMMS: | |
8 * Copyright (C) 1998-2003 XMMS development team | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2968
diff
changeset
|
12 * the Free Software Foundation; under version 3 of the License. |
2313 | 13 * |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2968
diff
changeset
|
20 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
21 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
22 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
23 * Audacious or using our public API to be a derived work. |
2313 | 24 */ |
25 | |
4407
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
4352
diff
changeset
|
26 #ifndef __AUDACIOUS_MAIN_H__ |
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
4352
diff
changeset
|
27 #define __AUDACIOUS_MAIN_H__ |
2313 | 28 |
29 #ifdef _AUDACIOUS_CORE | |
30 # include "ui_main.h" | |
3742 | 31 # ifdef USE_DBUS |
32 # include "dbus-service.h" | |
33 # endif | |
3346
71d8d93f1bad
Implemented TrackChange, StatusChange signals, with a stub for CapsChange.
Ben Tucker <ben.tucker@gmail.com>
parents:
3251
diff
changeset
|
34 #endif |
71d8d93f1bad
Implemented TrackChange, StatusChange signals, with a stub for CapsChange.
Ben Tucker <ben.tucker@gmail.com>
parents:
3251
diff
changeset
|
35 |
2313 | 36 #include <sys/types.h> |
37 #include <sys/stat.h> | |
38 | |
4409
8cb646ddae62
Pfft, we are Audacious and this is SPARTA!
Matti Hamalainen <ccr@tnsp.org>
parents:
4407
diff
changeset
|
39 #include "audconfig.h" |
4352
ac1f6d211223
Split BmpConfig from main.c and main.h; move around some other stuff too
mf0102 <0102@gmx.at>
parents:
4325
diff
changeset
|
40 |
2313 | 41 G_BEGIN_DECLS |
42 | |
43 #define PLAYER_HEIGHT \ | |
4218
f1074a07ec09
mostly works, but the VIS is broken, and the eq window is too large...more bugs
Cristi Magherusan <majeru@atheme.org>
parents:
4216
diff
changeset
|
44 ((cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) * (cfg.scaled ? cfg.scale_factor : 1)) |
2313 | 45 #define PLAYER_WIDTH \ |
4218
f1074a07ec09
mostly works, but the VIS is broken, and the eq window is too large...more bugs
Cristi Magherusan <majeru@atheme.org>
parents:
4216
diff
changeset
|
46 (MAINWIN_WIDTH * (cfg.scaled ? cfg.scale_factor : 1)) |
2313 | 47 |
4065
4bf76111e29e
introduce common debug print macro.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3965
diff
changeset
|
48 /* macro for debug print */ |
4067
cdf1fc0f5a0b
#if changed to #ifdef
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
4065
diff
changeset
|
49 #ifdef AUD_DEBUG |
4065
4bf76111e29e
introduce common debug print macro.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3965
diff
changeset
|
50 # define AUDDBG(...) g_print("%s:%d %s(): ", __FILE__, (int)__LINE__, __FUNCTION__), g_print(__VA_ARGS__) |
4bf76111e29e
introduce common debug print macro.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3965
diff
changeset
|
51 #else |
4bf76111e29e
introduce common debug print macro.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3965
diff
changeset
|
52 # define AUDDBG(...) |
4bf76111e29e
introduce common debug print macro.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3965
diff
changeset
|
53 #endif |
4bf76111e29e
introduce common debug print macro.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3965
diff
changeset
|
54 |
2313 | 55 |
56 enum { | |
57 VOLSET_STARTUP, | |
58 VOLSET_UPDATE, | |
59 VOLUME_ADJUSTED, | |
60 VOLUME_SET | |
61 }; | |
62 | |
63 enum { | |
64 BMP_PATH_LOG_FILE, | |
65 BMP_PATH_USER_DIR, | |
66 BMP_PATH_USER_PLUGIN_DIR, | |
67 BMP_PATH_USER_SKIN_DIR, | |
68 BMP_PATH_SKIN_THUMB_DIR, | |
3400
8764498b75ed
Add new playlists directory to paths
Kieran Clancy <clancy.kieran+audacious@gmail.com>
parents:
3346
diff
changeset
|
69 BMP_PATH_PLAYLISTS_DIR, |
2313 | 70 BMP_PATH_ACCEL_FILE, |
71 BMP_PATH_CONFIG_FILE, | |
72 BMP_PATH_PLAYLIST_FILE, | |
2463 | 73 BMP_PATH_GTKRC_FILE, |
2313 | 74 BMP_PATH_COUNT |
75 }; | |
76 | |
77 extern gchar *bmp_paths[]; | |
78 | |
79 extern const gchar *bmp_titlestring_presets[]; | |
80 extern const guint n_titlestring_presets; | |
81 | |
82 extern const gchar *chardet_detector_presets[]; | |
83 extern const guint n_chardet_detector_presets; | |
84 | |
85 extern GList *dock_window_list; | |
86 | |
87 extern gboolean has_x11_connection; | |
88 | |
89 extern GCond *cond_scan; | |
90 extern GMutex *mutex_scan; | |
3743 | 91 #if defined(USE_DBUS) && defined(_AUDACIOUS_CORE) |
3346
71d8d93f1bad
Implemented TrackChange, StatusChange signals, with a stub for CapsChange.
Ben Tucker <ben.tucker@gmail.com>
parents:
3251
diff
changeset
|
92 extern MprisPlayer *mpris; |
71d8d93f1bad
Implemented TrackChange, StatusChange signals, with a stub for CapsChange.
Ben Tucker <ben.tucker@gmail.com>
parents:
3251
diff
changeset
|
93 #endif |
2313 | 94 |
95 G_END_DECLS | |
96 | |
4407
5a0f5ef1de61
Some stupid header cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
4352
diff
changeset
|
97 #endif /* __AUDACIOUS_MAIN_H__ */ |