Chris@0: /* Chris@0: ** Copyright (C) 2005-2011 Erik de Castro Lopo Chris@0: ** Chris@0: ** This program is free software; you can redistribute it and/or modify Chris@0: ** it under the terms of the GNU General Public License as published by Chris@0: ** the Free Software Foundation; either version 2 of the License, or Chris@0: ** (at your option) any later version. Chris@0: ** Chris@0: ** This program is distributed in the hope that it will be useful, Chris@0: ** but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@0: ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@0: ** GNU General Public License for more details. Chris@0: ** Chris@0: ** You should have received a copy of the GNU General Public License Chris@0: ** along with this program; if not, write to the Free Software Chris@0: ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Chris@0: */ Chris@0: Chris@0: typedef struct REG_DB_tag REG_DB ; Chris@0: Chris@0: /* In database.c */ Chris@0: REG_DB * db_open (const char * db_name) ; Chris@0: Chris@0: int db_create (const char * dbname) ; Chris@0: Chris@0: int db_close (REG_DB * db_handle) ; Chris@0: Chris@0: int db_file_exists (REG_DB * db_handle, const char * filename) ; Chris@0: int db_add_file (REG_DB * db_handle, const char * filename) ; Chris@0: int db_check_file (REG_DB * db_handle, const char * filename) ; Chris@0: Chris@0: int db_list_all (REG_DB * db_handle) ; Chris@0: int db_check_all (REG_DB * db_handle) ; Chris@0: int db_del_entry (REG_DB * db_handle, const char * entry) ; Chris@0: Chris@0: /* In checksum.c */ Chris@0: int calc_checksum (SNDFILE * file, const SF_INFO * info) ; Chris@0: