owntone-server/src/db-memory.h

44 lines
1.3 KiB
C
Raw Normal View History

2003-11-03 15:34:52 -05:00
/*
* $Id$
* Header info for in-memory db
*
* Copyright (C) 2003 Ron Pedde (ron@pedde.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _DB_MEMORY_H_
#define _DB_MEMORY_H_
#include "mp3-scanner.h"
typedef void* ENUMHANDLE;
extern int db_start_initial_update(void);
extern int db_end_initial_update(void);
extern int db_is_empty(void);
extern int db_init(char *parameters);
extern int db_deinit(void);
extern int db_version(void);
extern int db_add(MP3FILE *mp3file);
extern ENUMHANDLE db_enum_begin(void);
extern MP3FILE *db_enum(ENUMHANDLE *current);
2003-11-04 01:11:00 -05:00
extern int db_enum_end(void);
2003-11-03 15:34:52 -05:00
extern MP3FILE *db_find(int id);
2003-11-04 01:11:00 -05:00
extern int db_get_song_count(void);
2003-11-03 15:34:52 -05:00
#endif /* _DB_MEMORY_H_ */