prepare for improved kvp frame handling in backend

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5046 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-07-28 03:19:36 +00:00
parent 951dfb0d1a
commit eab9e6b82c
4 changed files with 15 additions and 0 deletions

View File

@ -93,6 +93,7 @@ xaccInitAccount (Account * acc)
acc->description = g_strdup("");
acc->kvp_data = kvp_frame_new();
acc->idata = 0;
acc->commodity = NULL;
acc->commodity_scu = 100000;

View File

@ -142,6 +142,10 @@ struct _account {
* in any way desired. Handy for specialty traversals of the
* account tree. */
short mark;
/* -------------------------------------------------------------- */
/* Backend private expansion data */
guint32 idata; /* used by the sql backend for kvp management */
};

View File

@ -109,6 +109,7 @@ xaccInitSplit(Split * split)
split->reconciled_balance = gnc_numeric_zero();
split->kvp_data = kvp_frame_new();
split->idata = 0;
xaccGUIDNew(&split->guid);
xaccStoreEntity(split, &split->guid, GNC_ID_SPLIT);
@ -622,6 +623,7 @@ xaccInitTransaction (Transaction * trans)
trans->orig = NULL;
trans->kvp_data = kvp_frame_new();
trans->idata = 0;
xaccGUIDNew(&trans->guid);
xaccStoreEntity(trans, &trans->guid, GNC_ID_TRANS);

View File

@ -121,6 +121,10 @@ struct _split
gnc_numeric balance;
gnc_numeric cleared_balance;
gnc_numeric reconciled_balance;
/* -------------------------------------------------------------- */
/* Backend private expansion data */
guint32 idata; /* used by the sql backend for kvp management */
};
@ -186,6 +190,10 @@ struct _transaction
* any changes made if/when the edit is abandoned.
*/
Transaction *orig;
/* -------------------------------------------------------------- */
/* Backend private expansion data */
guint32 idata; /* used by the sql backend for kvp management */
};
/* Set the transaction's GUID. This should only be done when reading