]> git.sur5r.net Git - glabels/blob - src/svg-cache.h
Imported Upstream version 3.0.0
[glabels] / src / svg-cache.h
1 /*
2  *  svg-cache.h
3  *  Copyright (C) 2010  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
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.
11  *
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.
16  *
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/>.
19  */
20
21 #ifndef __SVG_CACHE_H__
22 #define __SVG_CACHE_H__
23
24 #include <glib.h>
25 #include <librsvg/rsvg.h>
26
27 G_BEGIN_DECLS
28
29 GHashTable *gl_svg_cache_new            (void);
30
31 void        gl_svg_cache_free           (GHashTable  *svg_cache);
32
33 void        gl_svg_cache_add_svg        (GHashTable  *svg_cache,
34                                          gchar       *name,
35                                          const gchar *contents);
36
37 RsvgHandle *gl_svg_cache_get_handle     (GHashTable  *svg_cache,
38                                          gchar       *name);
39
40 gchar      *gl_svg_cache_get_contents   (GHashTable  *svg_cache,
41                                          gchar       *name);
42
43 void        gl_svg_cache_remove_svg     (GHashTable  *svg_cache,
44                                          gchar       *name);
45
46 GList      *gl_svg_cache_get_name_list  (GHashTable  *svg_cache);
47
48 void        gl_svg_cache_free_name_list (GList       *name_list);
49
50 G_END_DECLS
51
52 #endif /*__SVG_CACHE_H__ */
53
54
55
56
57 /*
58  * Local Variables:       -- emacs
59  * mode: C                -- emacs
60  * c-basic-offset: 8      -- emacs
61  * tab-width: 8           -- emacs
62  * indent-tabs-mode: nil  -- emacs
63  * End:                   -- emacs
64  */