]> Dogcows Code - chaz/homebank/blob - src/hb-assign.h
import homebank-5.1.2
[chaz/homebank] / src / hb-assign.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 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_ASSIGN_H__
21 #define __HB_ASSIGN_H__
22
23
24 typedef struct _assign Assign;
25
26
27 struct _assign
28 {
29 guint32 key;
30 gushort flags;
31 gushort field;
32 gchar *text;
33 guint32 kpay;
34 guint32 kcat;
35 gushort paymode;
36 gushort pad1;
37 };
38
39
40 #define ASGF_EXACT (1<<0)
41 #define ASGF_DOPAY (1<<1)
42 #define ASGF_DOCAT (1<<2)
43 #define ASGF_DOMOD (1<<3)
44
45 #define ASGF_REGEX (1<<8)
46 #define ASGF_OVWPAY (1<<9)
47 #define ASGF_OVWCAT (1<<10)
48 #define ASGF_OVWMOD (1<<11)
49
50
51 void
52 da_asg_free(Assign *item);
53 Assign *da_asg_malloc(void);
54
55 void da_asg_destroy(void);
56 void da_asg_new(void);
57
58 guint da_asg_length(void);
59 gboolean da_asg_create_none(void);
60 gboolean da_asg_remove(guint32 key);
61 gboolean da_asg_insert(Assign *asg);
62 gboolean da_asg_append(Assign *asg);
63 guint32 da_asg_get_max_key(void);
64 Assign *da_asg_get_by_name(gchar *name);
65 Assign *da_asg_get(guint32 key);
66
67 GList *assign_glist_sorted(gint column);
68
69 #endif
70
This page took 0.030577 seconds and 4 git commands to generate.