Code

Fixed som spelling errors.
[ncmpc.git] / mpc.h
1 typedef struct
2 {
3   char selected;
4   mpd_InfoEntity *entity;
5 } filelist_entry_t;
7 typedef struct
8 {
9   mpd_Connection *connection;
10   mpd_Status     *status;
12   mpd_Song       *song;
13   int            song_id;
14   int            song_updated;
16   GList         *playlist;
17   int            playlist_length;
18   long long      playlist_id;
19   int            playlist_updated;
21   char           *cwd;
22   GList          *filelist;
23   int            filelist_length;
24   int            filelist_updated;
26 } mpd_client_t;
29 int mpc_close(mpd_client_t *c);
31 mpd_client_t *mpc_connect(char *host, int port, char *passwd);
32 int mpc_reconnect(mpd_client_t *c, char *host, int port, char *passwd);
34 int mpc_update(mpd_client_t *c);
35 int mpc_update_playlist(mpd_client_t *c);
37 int mpc_update_filelist(mpd_client_t *c);
38 int mpc_filelist_set_selected(mpd_client_t *c);
39 int mpc_set_cwd(mpd_client_t *c, char *dir);
41 mpd_Song *mpc_playlist_get_song(mpd_client_t *c, int n);
42 char *mpc_get_song_name(mpd_Song *song);
43 int mpc_playlist_get_song_index(mpd_client_t *c, char *filename);
45 int   mpc_error(mpd_client_t *c);
46 char *mpc_error_str(mpd_client_t *c);