mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Engine: Update the documentation of xaccTransDestroy().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17896 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -133,14 +133,20 @@ GType gnc_transaction_get_type(void);
|
||||
the xaccTransDestroy() method should be called. */
|
||||
Transaction * xaccMallocTransaction (QofBook *book);
|
||||
|
||||
/**
|
||||
The xaccTransDestroy() method will remove all
|
||||
of the splits from each of their accounts, free the memory
|
||||
associated with them. This routine must be followed by either
|
||||
an xaccTransCommitEdit(), in which case the transaction
|
||||
memory will be freed, or by xaccTransRollbackEdit(), in which
|
||||
case nothing at all is freed, and everything is put back into
|
||||
original order. */
|
||||
/** Destroys a transaction.
|
||||
* Each split in transaction @a trans is removed from its
|
||||
* account and destroyed as well.
|
||||
*
|
||||
* If the transaction has not already been opened for editing with
|
||||
* ::xaccTransBeginEdit() then the changes are committed immediately.
|
||||
* Otherwise, the caller must follow up with either
|
||||
* ::xaccTransCommitEdit(), in which case the transaction and
|
||||
* split memory will be freed, or xaccTransRollbackEdit(), in which
|
||||
* case nothing at all is freed, and everything is put back into
|
||||
* original order.
|
||||
*
|
||||
* @param trans the transaction to destroy
|
||||
*/
|
||||
void xaccTransDestroy (Transaction *trans);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user