Mercurial > audlegacy
comparison src/audlegacy/main.h @ 4811:7bf7f83a217e
rename src/audacious src/audlegacy so that both audlegacy and audacious can coexist.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 26 Nov 2008 00:44:56 +0900 |
parents | src/audacious/main.h@3a56d2786063 |
children |
comparison
equal
deleted
inserted
replaced
4810:c10e53092037 | 4811:7bf7f83a217e |
---|---|
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 | |
12 * the Free Software Foundation; under version 3 of the License. | |
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 | |
20 * along with this program. If not, see <http://www.gnu.org/licenses>. | |
21 * | |
22 * The Audacious team does not consider modular code linking to | |
23 * Audacious or using our public API to be a derived work. | |
24 */ | |
25 | |
26 #ifndef AUDACIOUS_MAIN_H | |
27 #define AUDACIOUS_MAIN_H | |
28 | |
29 #ifdef _AUDACIOUS_CORE | |
30 # include "legacy/ui_main.h" | |
31 # ifdef USE_DBUS | |
32 # include "dbus-service.h" | |
33 # endif | |
34 #endif | |
35 | |
36 #include <sys/types.h> | |
37 #include <sys/stat.h> | |
38 | |
39 #include "audconfig.h" | |
40 | |
41 G_BEGIN_DECLS | |
42 | |
43 #define PLAYER_HEIGHT \ | |
44 ((cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) * (cfg.scaled ? cfg.scale_factor : 1)) | |
45 #define PLAYER_WIDTH \ | |
46 (MAINWIN_WIDTH * (cfg.scaled ? cfg.scale_factor : 1)) | |
47 | |
48 /* macro for debug print */ | |
49 #ifdef AUD_DEBUG | |
50 # define AUDDBG(...) do { g_print("%s:%d %s(): ", __FILE__, (int)__LINE__, __FUNCTION__); g_print(__VA_ARGS__); } while (0) | |
51 #else | |
52 # define AUDDBG(...) do { } while (0) | |
53 #endif | |
54 | |
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, | |
69 BMP_PATH_PLAYLISTS_DIR, | |
70 BMP_PATH_ACCEL_FILE, | |
71 BMP_PATH_CONFIG_FILE, | |
72 BMP_PATH_PLAYLIST_FILE, | |
73 BMP_PATH_GTKRC_FILE, | |
74 BMP_PATH_COUNT | |
75 }; | |
76 | |
77 extern gchar *aud_paths[]; | |
78 | |
79 extern GCond *cond_scan; | |
80 extern GMutex *mutex_scan; | |
81 #if defined(USE_DBUS) && defined(_AUDACIOUS_CORE) | |
82 extern MprisPlayer *mpris; | |
83 #endif | |
84 | |
85 void aud_quit(void); | |
86 | |
87 G_END_DECLS | |
88 | |
89 #endif /* AUDACIOUS_MAIN_H */ |