GnuCash  4.8a-80-g9825132ea+
policy.h
Go to the documentation of this file.
1 /********************************************************************\
2  * policy.h -- Implement Accounting Policy *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA gnu@gnu.org *
20 \********************************************************************/
37 #ifndef XACC_POLICY_H
38 #define XACC_POLICY_H
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 typedef struct gncpolicy_s GNCPolicy;
45 
51 GList * gnc_get_valid_policy_list (void);
52 
56 gboolean gnc_valid_policy_name (const gchar *policy_name);
57 
58 const char *PolicyGetName (const GNCPolicy *pcy);
59 
60 const char *PolicyGetDescription (const GNCPolicy *pcy);
61 
62 const char *PolicyGetHint (const GNCPolicy *pcy);
63 
75 GNCPolicy *xaccGetFIFOPolicy (void);
76 
88 GNCPolicy *xaccGetLIFOPolicy (void);
89 
90 #ifdef __cplusplus
91 } /* extern "C" */
92 #endif
93 
94 #endif /* XACC_POLICY_H */
95 
GList * gnc_get_valid_policy_list(void)
Valid Policy List Provides a glist of implemented policies.
Definition: policy.c:67
GNCPolicy * xaccGetLIFOPolicy(void)
Last-in, Last-out Policy This policy will create LIFO Lots.
Definition: policy.c:308
gboolean gnc_valid_policy_name(const gchar *policy_name)
Valid Policy Name Uses the Valid Policy List to determine if a policy name is valid.
Definition: policy.c:80
The Policy routines try to encapsulate the FIFO/LIFO-specific parts of the cap-gains routine...
Definition: policy-p.h:64
GNCPolicy * xaccGetFIFOPolicy(void)
First-in, First-out Policy This policy will create FIFO Lots.
Definition: policy.c:251