]>
Dogcows Code - chaz/homebank/blob - src/hb-split.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 Maxime DOYEN
4 * This file is part of HomeBank.
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.
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.
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/>.
20 #ifndef __HB_SPLIT_H__
21 #define __HB_SPLIT_H__
24 #define TXN_MAX_SPLIT 10
26 typedef struct _split Split
;
37 void da_splits_append(Split
*txn_splits
[], Split
*new_split
);
38 void da_splits_free(Split
*txn_splits
[]);
39 guint
da_splits_count(Split
*txn_splits
[]);
40 guint
da_splits_clone(Split
*stxn_splits
[], Split
*dtxn_splits
[]);
42 Split
*da_split_new(guint32 kcat
, gdouble amount
, gchar
*memo
);
43 guint
da_splits_parse(Split
*ope_splits
[], gchar
*cats
, gchar
*amounts
, gchar
*memos
);
44 guint
da_splits_tostring(Split
*ope_splits
[], gchar
**cats
, gchar
**amounts
, gchar
**memos
);
46 void split_cat_consistency (Split
*txn_splits
[]);
This page took 0.043811 seconds and 4 git commands to generate.