Private interfaces, not meant to be used by applications.
#define qof_book_set_guid |
( |
|
book, |
|
|
|
guid |
|
) |
| qof_instance_set_guid(QOF_INSTANCE(book), guid) |
- Deprecated:
- use qof_instance_set_guid instead but only in backends (when reading the GncGUID from the data source).
Definition at line 66 of file qofbook-p.h.
Let the sytem know about a new provider of backends. This function is typically called by the provider library at library load time. This function allows the backend library to tell the QOF infrastructure that it can handle URL's of a certain type. Note that a single backend library may register more than one provider, if it is capable of handling more than one URL access method.
void qof_backend_set_message |
( |
QofBackend * |
be, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
gchar qof_book_get_open_marker |
( |
const QofBook * |
book | ) |
|
Allow backends to see if the book is open
- Returns
- 'y' if book is open, otherwise 'n'.
gint32 qof_book_get_version |
( |
const QofBook * |
book | ) |
|
get the book version
used for tracking multiuser updates in backends.
- Returns
- -1 if no book exists, 0 if the book is new, otherwise the book version number.
void qof_book_print_dirty |
( |
const QofBook * |
book | ) |
|
This debugging function can be used to traverse the book structure and all subsidiary structures, printing out which structures have been marked dirty.
gchar* qof_book_validate_counter_format_internal |
( |
const gchar * |
p, |
|
|
const gchar * |
gint64_format |
|
) |
| |
Validate a counter format string with the given G_GINT64_FORMAT. Returns an error message if the format string was invalid, or NULL if it is ok. The caller should free the error message with g_free.
void qof_collection_insert_entity |
( |
QofCollection * |
, |
|
|
QofInstance * |
|
|
) |
| |
Take entity, remove it from whatever collection its currently in, and place it in a new collection. To be used only for moving entity from one book to another.
void qof_collection_mark_clean |
( |
QofCollection * |
| ) |
|
reset value of dirty flag
void qof_object_book_begin |
( |
QofBook * |
book | ) |
|
To be called from within the book
gboolean qof_object_compliance |
( |
QofIdTypeConst |
type_name, |
|
|
gboolean |
warn |
|
) |
| |
check an object can be created and supports iteration
- Parameters
-
type_name | object to check |
warn | If called only once per operation, pass TRUE to log objects that fail the compliance check. To prevent repeated log messages when calling more than once, pass FALSE. |
- Returns
- TRUE if object can be created and supports iteration, else FALSE.