From ad7efed45e816099ea2d4db7fa25f1d5eff8eb57 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 15 Mar 2010 19:47:35 +0100 Subject: simple hash table for reducing memory usage for storing metadata strings --- metacache.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 metacache.h (limited to 'metacache.h') diff --git a/metacache.h b/metacache.h new file mode 100644 index 00000000..6ad1b5d6 --- /dev/null +++ b/metacache.h @@ -0,0 +1,28 @@ +/* + DeaDBeeF - ultimate music player for GNU/Linux systems with X11 + Copyright (C) 2009-2010 Alexey Yakovenko + + 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ +#ifndef __METACACHE_H +#define __METACACHE_H + +const char * +metacache_add_string (const char *str); + +void +metacache_remove_string (const char *str); + +#endif -- cgit v1.2.3