36 #include "qofinstance-p.h" 61 inst->do_free = FALSE;
73 inst->do_free = FALSE;
136 coll = inst->
entity.collection;
151 coll = inst->
entity.collection;
152 qof_collection_mark_dirty (coll);
158 if (inst->editlevel > 0)
168 return inst->do_free;
174 inst->do_free = TRUE;
217 if (!from || !to || (from->
book == to->
book))
224 "inst_guid", &from->
entity.guid,
227 "inst_guid", &to->
entity.guid,
241 if (!src || !target_book)
248 twin_guid = kvp_frame_get_guid (fr,
"inst_guid");
253 LEAVE (
" found twin=%p", twin);
Private KVP utilities for backends etc.
QofCollection * qof_book_get_collection(QofBook *book, QofIdType entity_type)
gboolean qof_collection_is_dirty(QofCollection *col)
struct _KvpFrame KvpFrame
gboolean qof_instance_is_dirty(QofInstance *inst)
QofBook * qof_instance_get_book(QofInstance *inst)
#define LEAVE(format, args...)
void qof_instance_set_dirty(QofInstance *inst)
Set the dirty flag.
Private QofBook interface.
QofTime * qof_time_get_current(void)
Get the current QofTime.
void kvp_frame_delete(KvpFrame *frame)
struct QofCollection_s QofCollection
const GUID * qof_instance_get_guid(QofInstance *inst)
KvpFrame * qof_instance_get_slots(QofInstance *inst)
KvpFrame * qof_kvp_bag_add(KvpFrame *pwd, const gchar *path, QofTime *qt, const gchar *first_name,...)
QofEntity * qof_collection_lookup_entity(QofCollection *col, const GUID *guid)
void qof_time_free(QofTime *qt)
Free a QofTime when no longer required.
gint qof_time_cmp(const QofTime *ta, const QofTime *tb)
void qof_entity_release(QofEntity *ent)
QofTime * qof_instance_get_update_time(QofInstance *inst)
struct QofTime64 QofTime
Use a 64-bit signed int QofTime.
KvpFrame * qof_kvp_bag_find_by_guid(KvpFrame *root, const gchar *path, const gchar *guid_name, GUID *desired_guid)
void qof_instance_release(QofInstance *inst)
KvpFrame * kvp_frame_new(void)
int qof_instance_version_cmp(QofInstance *left, QofInstance *right)
void qof_instance_init(QofInstance *inst, QofIdType type, QofBook *book)
void qof_entity_init(QofEntity *ent, QofIdType type, QofCollection *tab)
void qof_instance_gemini(QofInstance *to, QofInstance *from)
#define ENTER(format, args...)
const gchar * QofLogModule
QofInstance * qof_instance_lookup_twin(QofInstance *src, QofBook *target_book)