GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qofbook-p.h
1 /********************************************************************\
2  * qof-book-p.h -- private functions for QOF books. *
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 [email protected] *
20  * *
21 \********************************************************************/
29 /*
30  * HISTORY:
31  * Created 2001 by Rob Browning
32  * Copyright (c) 2001 Rob Browning
33  * Copyright (c) 2001,2003 Linas Vepstas <[email protected]>
34  */
35 
36 #ifndef QOF_BOOK_P_H
37 #define QOF_BOOK_P_H
38 
39 #include "kvp_frame.h"
40 #include "qofbackend.h"
41 #include "qofbook.h"
42 #include "qofid.h"
43 #include "qofid-p.h"
44 #include "qofinstance-p.h"
45 
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50 
51 /*
52  * qof_book_set_backend() is used by backends to
53  * initialize the pointers in the book structure to
54  * something that contains actual data. These routines
55  * should not be used otherwise. (Its somewhat questionable
56  * if the backends should even be doing this much, but for
57  * backwards compatibility, we leave these here.)
58  */
59 void qof_book_set_backend (QofBook *book, QofBackend *be);
60 
61 /* Register books with the engine */
62 gboolean qof_book_register (void);
63 
66 #define qof_book_set_guid(book,guid) \
67  qof_instance_set_guid(QOF_INSTANCE(book), guid)
68 
74 gchar *qof_book_validate_counter_format_internal(const gchar *p,
75  const gchar* gint64_format);
76 
81 void qof_book_print_dirty (const QofBook *book);
82 
83 /* @} */
84 /* @} */
85 /* @} */
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif /* QOF_BOOK_P_H */
API for data storage Backend.
gboolean qof_book_register(void)
A key-value frame system.
QOF entity type identification system.
gchar * qof_book_validate_counter_format_internal(const gchar *p, const gchar *gint64_format)
Encapsulate all the information about a dataset.
void qof_book_print_dirty(const QofBook *book)