GnuCash  5.6-150-g038405b370+
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 <gtk/gtk.h>
30 #include <Account.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
42 GList * gnc_account_get_autoclear_splits (Account *account, gnc_numeric toclear_value,
43  gchar **errmsg);
44 
45 /* same as above, but returns TRUE if successful, and FALSE if
46  unsuccessful and sets GError appropriately */
47 gboolean gnc_autoclear_get_splits (Account *account, gnc_numeric toclear_value,
48  time64 end_date,
49  GList **splits, GError **error, GtkLabel *label);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif
STRUCTS.
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