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