add is_dirty getter

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9496 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas
2003-10-13 14:11:53 +00:00
parent 304fd730f4
commit 94d1a5039b
2 changed files with 10 additions and 0 deletions

View File

@@ -83,6 +83,13 @@ qof_instance_get_slots (QofInstance *inst)
return inst->kvp_data;
}
gboolean
qof_instance_is_dirty (QofInstance *inst)
{
if (!inst) return FALSE;
return inst->dirty;
}
/* ========================================================== */
void

View File

@@ -87,6 +87,9 @@ const GUID * qof_instance_get_guid (QofInstance *);
/** return the pointer to the kvp_data */
KvpFrame* qof_instance_get_slots (QofInstance *);
/** return value of is_dirty flag */
gboolean qof_instance_is_dirty (QofInstance *);
/** pair things up. Currently, this routine only inserts a
* pair of guid-pointers pointing to each other. it
* doesn't copy any data.