]> git.sur5r.net Git - glabels/blob - libglabels/category.h
Imported Upstream version 2.2.8
[glabels] / 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/gtypes.h>
32 #include <glib/glist.h>
33
34 G_BEGIN_DECLS
35
36 /*
37  *   Template class
38  */
39 typedef struct _lglCategory lglCategory;
40
41 struct _lglCategory {
42         gchar               *id;     /* Unique ID of category */
43         gchar               *name;   /* Localized name of category */
44 };
45
46
47 /*
48  * Category construction
49  */
50 lglCategory      *lgl_category_new                 (gchar            *id,
51                                                     gchar            *name);
52
53 lglCategory      *lgl_category_dup                 (const lglCategory *orig);
54 void              lgl_category_free                (lglCategory       *category);
55
56
57 G_END_DECLS
58
59 #endif