summaryrefslogtreecommitdiff
path: root/metacache.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-15 19:47:35 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-15 19:47:35 +0100
commitad7efed45e816099ea2d4db7fa25f1d5eff8eb57 (patch)
tree7d195b5c33a2683e614557787562c82337f5efb5 /metacache.h
parent563906ec3d82b8f698215537e43c4271404564da (diff)
simple hash table for reducing memory usage for storing metadata strings
Diffstat (limited to 'metacache.h')
-rw-r--r--metacache.h28
1 files changed, 28 insertions, 0 deletions
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 <waker@users.sourceforge.net>
+
+ 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