All pastes #13338 Raw Edit

Unnamed

public text v1 · immutable
#13338 ·published 2005-06-04 03:46 UTC
rendered paste body
/*
 * Another Music Player Client
 *
 * ampc (c) 2005 Trevor Caira <trevor.caira@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __MPDCLIENT_H__
#define __MPDCLIENT_H__

/* mpdclient_t from ncmpc by Kalle Wallin <kaw@linux.se> */
typedef struct
{
	mpd_Connection *connection;
	mpd_Status *status;
	mpd_Song *song;
}
mpdclient_t;

mpdclient_t *new_mpdclient (ampc_options *options);
void free_mpdclient (mpdclient_t *mpdclient);

mpd_Connection *my_new_connection (ampc_options *options);
mpd_Status *my_new_status (mpd_Connection *connection);
mpd_Song *my_new_song ();

int my_check_error (mpd_Connection *connection);
int my_finish_command (mpd_Connection *connection)

#endif /* __MPDCLIENT_H__ */