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