Small build fix & zero playtime and progress bars when XMMS2 playback is stopped.
[monky] / src / mpd.h
index da6a13c..d011fce 100644 (file)
--- a/src/mpd.h
+++ b/src/mpd.h
@@ -3,8 +3,6 @@
 #ifndef MPD_H_
 #define MPD_H_
 
-//#include "conky.h"
-
 struct mpd_s {
        char *title;
        char *artist;
@@ -16,7 +14,7 @@ struct mpd_s {
        char *name;
        char *file;
        int is_playing;
-       int volume;
+       int vol;
        float progress;
        int bitrate;
        int length;
@@ -33,6 +31,23 @@ int mpd_set_port(const char *);
 void init_mpd(void);
 struct mpd_s *mpd_get_info(void);
 void free_mpd(void);
-void update_mpd(void);
+int update_mpd(void);
+
+void print_mpd_elapsed(struct text_object *, char *, int);
+void print_mpd_length(struct text_object *, char *, int);
+void print_mpd_percent(struct text_object *, char *, int);
+void print_mpd_bar(struct text_object *, char *, int);
+void print_mpd_smart(struct text_object *, char *, int);
+void print_mpd_title(struct text_object *, char *, int);
+void print_mpd_artist(struct text_object *, char *, int);
+void print_mpd_album(struct text_object *, char *, int);
+void print_mpd_random(struct text_object *, char *, int);
+void print_mpd_repeat(struct text_object *, char *, int);
+void print_mpd_track(struct text_object *, char *, int);
+void print_mpd_name(struct text_object *, char *, int);
+void print_mpd_file(struct text_object *, char *, int);
+void print_mpd_vol(struct text_object *, char *, int);
+void print_mpd_bitrate(struct text_object *, char *, int);
+void print_mpd_status(struct text_object *, char *, int);
 
 #endif /*MPD_H_*/