r17896 - gnucash/trunk/src/engine - Engine: Update the documentation of xaccTransDestroy().
Charles Day
cedayiv at cvs.gnucash.org
Thu Feb 12 00:47:34 EST 2009
Author: cedayiv
Date: 2009-02-12 00:47:34 -0500 (Thu, 12 Feb 2009)
New Revision: 17896
Trac: http://svn.gnucash.org/trac/changeset/17896
Modified:
gnucash/trunk/src/engine/Transaction.h
Log:
Engine: Update the documentation of xaccTransDestroy().
Modified: gnucash/trunk/src/engine/Transaction.h
===================================================================
--- gnucash/trunk/src/engine/Transaction.h 2009-02-12 05:18:14 UTC (rev 17895)
+++ gnucash/trunk/src/engine/Transaction.h 2009-02-12 05:47:34 UTC (rev 17896)
@@ -133,14 +133,20 @@
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);
/**
More information about the gnucash-changes
mailing list