add gitignore
[chaz/homebank] / src / hb-tag.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __HB_TAG_H__
21 #define __HB_TAG_H__
22
23
24 typedef struct _tag Tag;
25
26
27 struct _tag
28 {
29 guint32 key;
30 gchar *name;
31 };
32
33 void
34 da_tag_free(Tag *item);
35 Tag *da_tag_malloc(void);
36
37 void da_tag_destroy(void);
38 void da_tag_new(void);
39
40 guint da_tag_length(void);
41 gboolean da_tag_create_none(void);
42 gboolean da_tag_remove(guint32 key);
43 gboolean da_tag_insert(Tag *acc);
44 gboolean da_tag_append(Tag *acc);
45 guint32 da_tag_get_max_key(void);
46 Tag *da_tag_get_by_name(gchar *name);
47 Tag *da_tag_get(guint32 key);
48
49 GList *tag_glist_sorted(gint column);
50
51 #endif
52
This page took 0.037031 seconds and 4 git commands to generate.