]> git.sur5r.net Git - glabels/blob - libglabels/lgl-category.h
Imported Upstream version 3.0.0
[glabels] / libglabels / lgl-category.h
1 /*
2  *  lgl-category.h
3  *  Copyright (C) 2006-2010  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of libglabels.
6  *
7  *  libglabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser 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  *  libglabels 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 Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with libglabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __LGL_CATEGORY_H__
22 #define __LGL_CATEGORY_H__
23
24 #include <glib.h>
25
26 G_BEGIN_DECLS
27
28 /*
29  *   Template class
30  */
31 typedef struct _lglCategory lglCategory;
32
33 struct _lglCategory {
34         gchar               *id;     /* Unique ID of category */
35         gchar               *name;   /* Localized name of category */
36 };
37
38
39 /*
40  * Category construction
41  */
42 lglCategory      *lgl_category_new                 (gchar             *id,
43                                                     gchar             *name);
44
45 lglCategory      *lgl_category_dup                 (const lglCategory *orig);
46 void              lgl_category_free                (lglCategory       *category);
47
48
49 G_END_DECLS
50
51 #endif /* __LGL_CATEGORY_H__ */
52
53
54
55 /*
56  * Local Variables:       -- emacs
57  * mode: C                -- emacs
58  * c-basic-offset: 8      -- emacs
59  * tab-width: 8           -- emacs
60  * indent-tabs-mode: nil  -- emacs
61  * End:                   -- emacs
62  */