X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fhb-tag.h;h=877079f06be2f6e102ae76eebc8b9db938f5ceef;hp=da890e9dc45a928d7e42fd088ba1f14f79593698;hb=HEAD;hpb=2ef3e601408ebaeeaf5f40d6967664b012a49979 diff --git a/src/hb-tag.h b/src/hb-tag.h index da890e9..877079f 100644 --- a/src/hb-tag.h +++ b/src/hb-tag.h @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2017 Maxime DOYEN + * Copyright (C) 1995-2019 Maxime DOYEN * * This file is part of HomeBank. * @@ -23,15 +23,18 @@ typedef struct _tag Tag; - struct _tag { guint32 key; gchar *name; + + /* unsaved datas */ + //gboolean flt_select; + guint usage_count; }; -void -da_tag_free(Tag *item); + +void da_tag_free(Tag *item); Tag *da_tag_malloc(void); void da_tag_destroy(void); @@ -46,6 +49,13 @@ guint32 da_tag_get_max_key(void); Tag *da_tag_get_by_name(gchar *name); Tag *da_tag_get(guint32 key); +guint tags_count(guint32 *tags); +guint32 *tags_clone(guint32 *tags); +guint32 *tags_parse(const gchar *tagstring); +gchar *tags_tostring(guint32 *tags); + +gboolean tag_rename(Tag *item, const gchar *newname); + GList *tag_glist_sorted(gint column); #endif