GnuCash  4.12-527-g05ffd3d4eb
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 gnu@gnu.org *
20  * *
21 \********************************************************************/
29 /*
30  * HISTORY:
31  * Created 2001 by Rob Browning
32  * Copyright (c) 2001 Rob Browning
33  * Copyright (c) 2001,2003 Linas Vepstas <linas@linas.org>
34  */
35 
36 #ifndef QOF_BOOK_P_H
37 #define QOF_BOOK_P_H
38 
39 #include "qofbackend.h"
40 #include "qofbook.h"
41 #include "qofid.h"
42 #include "qofid-p.h"
43 #include "qofinstance-p.h"
44 #ifdef __cplusplus
45 extern "C"
46 {
47 #endif
48 
49 /*
50  * qof_book_set_backend() is used by backends to
51  * initialize the pointers in the book structure to
52  * something that contains actual data. These routines
53  * should not be used otherwise. (Its somewhat questionable
54  * if the backends should even be doing this much, but for
55  * backwards compatibility, we leave these here.)
56  */
57 void qof_book_set_backend (QofBook *book, QofBackend *be);
58 
59 /* Register books with the engine */
60 gboolean qof_book_register (void);
61 
64 #define qof_book_set_guid(book,guid) \
65  qof_instance_set_guid(QOF_INSTANCE(book), guid)
66 
75 gchar *qof_book_normalize_counter_format_internal(const gchar *p,
76  const gchar* gint64_format, gchar **err_msg);
77 
82 void qof_book_print_dirty (const QofBook *book);
83 
84 /* @} */
85 /* @} */
86 /* @} */
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* QOF_BOOK_P_H */
API for data storage Backend.
QOF entity type identification system.
gchar * qof_book_normalize_counter_format_internal(const gchar *p, const gchar *gint64_format, gchar **err_msg)
Validate a counter format string with a given format specifier.
Definition: qofbook.cpp:779
Encapsulate all the information about a dataset.
void qof_book_print_dirty(const QofBook *book)
This debugging function can be used to traverse the book structure and all subsidiary structures...
Definition: qofbook.cpp:423