about.c: cosmetix
[k8lowj.git] / src / music.h
blob396ed2f2ae874cc547685c8b8cf101146e0399e7
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
5 */
7 #ifndef music_h
8 #define music_h
10 #include "conf.h" /* CommandList */
12 typedef enum {
13 MUSIC_SOURCE_NONE,
14 MUSIC_SOURCE_XMMS,
15 MUSIC_SOURCE_RHYTHMBOX,
16 MUSIC_SOURCE_CUSTOM,
17 MUSIC_SOURCE_COUNT
18 } MusicSource;
20 extern const CommandList music_commands[];
22 typedef enum {
23 MUSIC_COMMAND_ERROR,
24 MUSIC_COMMAND_LINE_ERROR,
25 MUSIC_UNIMPLEMENTED_ERROR
26 } MusicError;
28 gboolean music_can_detect(GError **err);
29 char* music_detect(GError **err);
31 GQuark music_error_quark(void);
32 #define MUSIC_ERROR music_error_quark()
34 MusicSource music_current_source(void);
36 #endif /* music_h */