64 #define QOF_OBJECT_VERSION 3
66 #define QOF_MOD_OBJECT "qof.object"
69 typedef void (*QofForeachCB) (gpointer obj, gpointer user_data);
70 typedef void (*QofForeachTypeCB) (
QofObject *type, gpointer user_data);
72 gpointer backend_data,
79 gint interface_version;
81 const char * type_label;
116 const char * (*printable)(gpointer instance);
126 int (*
version_cmp)(gpointer instance_left, gpointer instance_right);
133 void qof_object_initialize (
void);
134 void qof_object_shutdown (
void);
176 const char *backend_name,
181 const char *backend_name);
183 void qof_object_foreach_backend (
const char *backend_name,
184 QofForeachBackendTypeCB cb,
void(* mark_clean)(QofCollection *)
gboolean qof_object_register_backend(QofIdTypeConst type_name, const char *backend_name, gpointer be_data)
void(* book_end)(QofBook *)
const char * qof_object_get_type_label(QofIdTypeConst type_name)
const gchar * QofIdTypeConst
int(* version_cmp)(gpointer instance_left, gpointer instance_right)
gpointer(* create)(QofBook *)
QOF entity type identification system.
void qof_object_foreach_type(QofForeachTypeCB cb, gpointer user_data)
void qof_object_foreach_sorted(QofIdTypeConst type_name, QofBook *book, QofInstanceForeachCB cb, gpointer user_data)
const QofObject * qof_object_lookup(QofIdTypeConst type_name)
void qof_object_foreach(QofIdTypeConst type_name, QofBook *book, QofInstanceForeachCB cb, gpointer user_data)
void(* book_begin)(QofBook *)
gpointer qof_object_new_instance(QofIdTypeConst type_name, QofBook *book)
void(* QofInstanceForeachCB)(QofInstance *, gpointer user_data)
Encapsulate all the information about a dataset.
gboolean(* is_dirty)(const QofCollection *)
Linking one entity to other entities of many possible types.
const char * qof_object_printable(QofIdTypeConst type_name, gpointer instance)
gboolean qof_object_register(const QofObject *object)