00001 /* 00002 $Id: cddb_cmd.h,v 1.17 2006/10/15 08:58:51 airborne Exp $ 00003 00004 Copyright (C) 2003, 2004, 2005 Kris Verbeeck <airborne@advalvas.be> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public 00017 License along with this library; if not, write to the 00018 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef CDDB_CMD_H 00023 #define CDDB_CMD_H 1 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 00030 /* --- accessing data on the CDDB server --- */ 00031 00032 00079 int cddb_read(cddb_conn_t *c, cddb_disc_t *disc); 00080 00097 int cddb_query(cddb_conn_t *c, cddb_disc_t *disc); 00098 00106 int cddb_query_next(cddb_conn_t *c, cddb_disc_t *disc); 00107 00123 int cddb_search(cddb_conn_t *c, cddb_disc_t *disc, const char *str); 00124 00132 int cddb_search_next(cddb_conn_t *c, cddb_disc_t *disc); 00133 00148 int cddb_album(cddb_conn_t *c, cddb_disc_t *disc); 00149 00157 int cddb_album_next(cddb_conn_t *c, cddb_disc_t *disc); 00158 00169 int cddb_write(cddb_conn_t *c, cddb_disc_t *disc); 00170 00178 int cddb_sites(cddb_conn_t *c); 00179 00180 00181 #ifdef __cplusplus 00182 } 00183 #endif 00184 00185 #endif /* CDDB_CMD_H */