57 #define QOF_OBJECT_VERSION 4 59 #define QOF_MOD_OBJECT "qof-object" 62 typedef void (*QofForeachCB) (gpointer obj, gpointer user_data);
63 typedef void (*QofForeachTypeCB) (
QofObject * type, gpointer user_data);
65 gpointer backend_data,
72 gint interface_version;
74 const gchar *type_label;
109 const gchar *(*printable) (gpointer instance);
119 gint (*
version_cmp) (gpointer instance_left, gpointer instance_right);
126 void qof_object_initialize (
void);
127 void qof_object_shutdown (
void);
166 const gchar * backend_name,
170 const gchar * backend_name);
172 void qof_object_foreach_backend (
const char *backend_name,
173 QofForeachBackendTypeCB cb,
gpointer qof_object_new_instance(QofIdTypeConst type_name, QofBook *book)
void qof_object_foreach(QofIdTypeConst type_name, QofBook *book, QofEntityForeachCB cb, gpointer user_data)
const QofObject * qof_object_lookup(QofIdTypeConst type_name)
void(* QofEntityForeachCB)(QofEntity *, gpointer user_data)
gpointer(* create)(QofBook *)
void(* book_end)(QofBook *)
QOF entity type identification system.
const gchar * qof_object_get_type_label(QofIdTypeConst type_name)
struct QofCollection_s QofCollection
void(* book_begin)(QofBook *)
void(* mark_clean)(QofCollection *)
const gchar * qof_object_printable(QofIdTypeConst type_name, gpointer instance)
gboolean(* is_dirty)(QofCollection *)
gboolean qof_object_register_backend(QofIdTypeConst type_name, const gchar *backend_name, gpointer be_data)
Encapsulate all the information about a dataset.
gboolean qof_object_register(const QofObject *object)
const gchar * QofIdTypeConst
Linking one entity to other entities of many possible types.
gint(* version_cmp)(gpointer instance_left, gpointer instance_right)
void qof_object_foreach_type(QofForeachTypeCB cb, gpointer user_data)