mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-20 03:51:18 +00:00
9048af353a
Most MPD clients read the MPD_HOST and MPD_PORT environment variables. Now, conky will too. MPD_HOST can be either "hostname" or "password@hostname". If a user specifies a host in the configuration, the password set in MPD_HOST will be ignored. This is to prevent the password from being sent to the wrong host. In other words, if the host is specified in the conky configuration, the password must be too (if there is one). Signed-off-by: Brenden Matthews <brenden@rty.ca>
37 lines
644 B
C
37 lines
644 B
C
#ifndef MPD_H_
|
|
#define MPD_H_
|
|
|
|
//#include "conky.h"
|
|
|
|
struct mpd_s {
|
|
char *title;
|
|
char *artist;
|
|
char *album;
|
|
const char *status;
|
|
const char *random;
|
|
const char *repeat;
|
|
char *track;
|
|
char *name;
|
|
char *file;
|
|
int is_playing;
|
|
int volume;
|
|
float progress;
|
|
int bitrate;
|
|
int length;
|
|
int elapsed;
|
|
};
|
|
|
|
/* functions for setting the configuration values */
|
|
void mpd_set_host(const char *);
|
|
void mpd_set_password(const char *, int);
|
|
void mpd_clear_password(void);
|
|
int mpd_set_port(const char *);
|
|
|
|
/* text object functions */
|
|
void init_mpd(void);
|
|
struct mpd_s *mpd_get_info(void);
|
|
void free_mpd(void);
|
|
void update_mpd(void);
|
|
|
|
#endif /*MPD_H_*/
|