musicus mpd client 0.1d
Data Structures | Defines | Enumerations | Variables
Global

Data Structures

struct  MpdPlayState
struct  MpdStateInfo
struct  MpdStatusFmt
struct  MpdInfo

Defines

#define AUTHORS   "Simon Gerber <simugerber@student.ethz.ch>"
#define DOCUMENTERS   "Simon Gerber <simugerber@student.ethz.ch>"
#define LOGO   "musicus-mpc"
#define BUF_LEN   256
#define HOST   mpd_info.msi.host->str
 convenience macro for mpd host
#define PORT   mpd_info.msi.port
 convenience macro for mpd port
#define TIMEOUT   mpd_info.msi.timeout
 convenience macro for connection timeout
#define PASSWORD   mpd_info.msi.pw->str
 convenience macro for mpd password

Enumerations

enum  { FMT_TOOLTIP, FMT_TITLE, FMT_STATUSBAR, FMT_APPLET }
enum  {
  HAS_NOTHING = 0, HAS_STATE = 1 << 0, HAS_CURRENT_TIME = 1 << 1, HAS_SONG_TIME = 1 << 2,
  HAS_ALL = HAS_STATE|HAS_CURRENT_TIME|HAS_SONG_TIME
}

Variables

int debug
int verbose
FILE * err_file
FILE * log_file
char title_text [BUF_LEN]
MpdInfo mpd_info

Detailed Description

Global structures and data.


Define Documentation

#define AUTHORS   "Simon Gerber <simugerber@student.ethz.ch>"
#define BUF_LEN   256
#define DOCUMENTERS   "Simon Gerber <simugerber@student.ethz.ch>"
#define HOST   mpd_info.msi.host->str

convenience macro for mpd host

#define LOGO   "musicus-mpc"
#define PASSWORD   mpd_info.msi.pw->str

convenience macro for mpd password

#define PORT   mpd_info.msi.port

convenience macro for mpd port

#define TIMEOUT   mpd_info.msi.timeout

convenience macro for connection timeout


Enumeration Type Documentation

anonymous enum

Format string types enumeration

Enumerator:
FMT_TOOLTIP 

tooltip format

FMT_TITLE 

title format

FMT_STATUSBAR 

statusbar format

FMT_APPLET 

applet format

anonymous enum

Format string contents enumeration

Enumerator:
HAS_NOTHING 

no variable contents

HAS_STATE 

state (playing / paused)

HAS_CURRENT_TIME 

current time

HAS_SONG_TIME 

song time

HAS_ALL 

all of the above three


Variable Documentation

int debug

if this variable is set to 1, debug output is generated this output goes to the file specified by log_file

FILE* err_file

the file handle which is used as destination for error messages

FILE* log_file

the file handle which is used as destination for log messages

global MpdInfo struct

char title_text[BUF_LEN]

this variable is used for an automatic title update routine the update routine runs all mpd_info.update_interval milliseconds

int verbose

if this variable is et to 1, more verbose debug output is generated this output also goes to the file specified by log_file

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines