]> Dogcows Code - chaz/homebank/blob - src/hb-tag.h
import homebank-5.2.4
[chaz/homebank] / src / hb-tag.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 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 struct _tag
27 {
28 guint32 key;
29 gchar *name;
30
31 /* unsaved datas */
32 //gboolean flt_select;
33 guint usage_count;
34 };
35
36
37 void da_tag_free(Tag *item);
38 Tag *da_tag_malloc(void);
39
40 void da_tag_destroy(void);
41 void da_tag_new(void);
42
43 guint da_tag_length(void);
44 gboolean da_tag_create_none(void);
45 gboolean da_tag_remove(guint32 key);
46 gboolean da_tag_insert(Tag *acc);
47 gboolean da_tag_append(Tag *acc);
48 guint32 da_tag_get_max_key(void);
49 Tag *da_tag_get_by_name(gchar *name);
50 Tag *da_tag_get(guint32 key);
51
52
53 guint tags_count(guint32 *tags);
54 guint32 *tags_clone(guint32 *tags);
55 guint32 *tags_parse(const gchar *tagstring);
56 gchar *tags_tostring(guint32 *tags);
57
58 gboolean tag_rename(Tag *item, const gchar *newname);
59
60 GList *tag_glist_sorted(gint column);
61
62 #endif
63
This page took 0.036592 seconds and 4 git commands to generate.