]> git.sur5r.net Git - glabels/blob - glabels2/libglabels/category.h
dccbc194bc9a6535fc082bffcec44c1592e3abc0
[glabels] / glabels2 / libglabels / category.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
3 /*
4  *  (LIBGLABELS) Template library for GLABELS
5  *
6  *  category.h:  template category module header file
7  *
8  *  Copyright (C) 2006  Jim Evins <evins@snaught.com>.
9  *
10  *  This file is part of the LIBGLABELS library.
11  *
12  *  This library is free software; you can redistribute it and/or
13  *  modify it under the terms of the GNU Library General Public
14  *  License as published by the Free Software Foundation; either
15  *  version 2 of the License, or (at your option) any later version.
16  *
17  *  This library is distributed in the hope that it will be useful,
18  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  *  Library General Public License for more details.
21  *
22  *  You should have received a copy of the GNU Library General Public
23  *  License along with this library; if not, write to the Free
24  *  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25  *  MA 02111-1307, USA
26  */
27
28 #ifndef __CATEGORY_H__
29 #define __CATEGORY_H__
30
31 #include <glib.h>
32
33 G_BEGIN_DECLS
34
35 /*
36  *   Template class
37  */
38 typedef struct _lglCategory lglCategory;
39
40 struct _lglCategory {
41         gchar               *id;     /* Unique ID of category */
42         gchar               *name;   /* Localized name of category */
43 };
44
45
46 /*
47  * Category construction
48  */
49 lglCategory      *lgl_category_new                 (gchar            *id,
50                                                     gchar            *name);
51
52 lglCategory      *lgl_category_dup                 (const lglCategory *orig);
53 void              lgl_category_free                (lglCategory       *category);
54
55
56 G_END_DECLS
57
58 #endif