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