3 * Copyright (C) 2010 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
7 * gLabels is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * gLabels is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef __SVG_CACHE_H__
22 #define __SVG_CACHE_H__
25 #include <librsvg/rsvg.h>
29 GHashTable *gl_svg_cache_new (void);
31 void gl_svg_cache_free (GHashTable *svg_cache);
33 void gl_svg_cache_add_svg (GHashTable *svg_cache,
35 const gchar *contents);
37 RsvgHandle *gl_svg_cache_get_handle (GHashTable *svg_cache,
40 gchar *gl_svg_cache_get_contents (GHashTable *svg_cache,
43 void gl_svg_cache_remove_svg (GHashTable *svg_cache,
46 GList *gl_svg_cache_get_name_list (GHashTable *svg_cache);
48 void gl_svg_cache_free_name_list (GList *name_list);
52 #endif /*__SVG_CACHE_H__ */
58 * Local Variables: -- emacs
60 * c-basic-offset: 8 -- emacs
61 * tab-width: 8 -- emacs
62 * indent-tabs-mode: nil -- emacs