GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-autoclear.h
1/********************************************************************
2 * gnc-autoclear.h -- Knapsack algorithm functions
3 *
4 * Copyright 2020 Cristian Klein <cristian@kleinlabs.eu>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
10 *
11 * This program 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, contact:
18 *
19 * Free Software Foundation Voice: +1-617-542-5942
20 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21 * Boston, MA 02111-1301, USA gnu@gnu.org
22 *******************************************************************/
23
24#ifndef GNC_AUTOCLEAR_H
25#define GNC_AUTOCLEAR_H
26
27#include <glib.h>
28#include <stdint.h>
29#include <Account.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35typedef enum
36{
37 ABORT_NONE = 0,
38 ABORT_NOP,
39 ABORT_MULTI,
40 ABORT_TIMEOUT,
41 ABORT_UNREACHABLE,
42} Autoclear;
43
54GList * gnc_account_get_autoclear_splits (Account *account,
55 gnc_numeric toclear_value,
56 time64 end_date, GError **error,
57 double max_seconds);
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif
Account handling public routines.
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
Definition gnc-date.h:87
STRUCTS.