GnuCash c935c2f+
Loading...
Searching...
No Matches
engine-helpers.h
1/********************************************************************\
2 * engine-helpers.h -- gnucash engine helper functions *
3 * Copyright (C) 2000 Linas Vepstas <linas@linas.org> *
4 * Copyright (C) 2001 Linux Developers Group, Inc. *
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 02110-1301, USA gnu@gnu.org *
22 * *
23\********************************************************************/
24
25#ifndef ENGINE_HELPERS_H
26#define ENGINE_HELPERS_H
27
28#include <glib.h>
29
30#include "gnc-engine.h"
31#include "Account.h"
32#include "Query.h"
33#include "Transaction.h"
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39typedef void (*GncBOCb) (gpointer new_val, gpointer user_data);
40
48const char * gnc_get_num_action (const Transaction *trans, const Split *split);
49
56const char * gnc_get_action_num (const Transaction *trans, const Split *split);
57
69void gnc_set_num_action (Transaction *trans, Split *split,
70 const char *num, const char *action);
71
74void
75gnc_book_option_num_field_source_change (gboolean num_action);
76
79void
80gnc_book_option_register_cb (const gchar *key, GncBOCb func, gpointer user_data);
81
83void
84gnc_book_option_remove_cb (const gchar *key, GncBOCb func, gpointer user_data);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif
Account handling public routines.
API for Transactions and Splits (journal entries)
All type declarations for the whole Gnucash engine.