mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
documentation cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1254 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
e431557f19
commit
bec8f3091a
@ -57,20 +57,22 @@ typedef struct _transaction Transaction;
|
|||||||
|
|
||||||
/** PROTOTYPES ******************************************************/
|
/** PROTOTYPES ******************************************************/
|
||||||
/*
|
/*
|
||||||
* The xaccTransSetDate() method will modify the date of the
|
* The xaccMallocTransaction() will malloc memory and initilize it.
|
||||||
* transaction. It will also make sure that the transaction
|
* Once created, it is usually unsafe to merely "free" this memory;
|
||||||
* is stored in proper date order in the accounts.
|
* the xaccTransDestroy() method should be called.
|
||||||
*/
|
*
|
||||||
|
* The xaccInitTransaction() method will initialize the indicated memory
|
||||||
|
* area. Handy for on-stack trasnactions.
|
||||||
|
*/
|
||||||
|
Transaction * xaccMallocTransaction (void);
|
||||||
|
void xaccInitTransaction (Transaction *);
|
||||||
|
|
||||||
Transaction * xaccMallocTransaction (void); /* mallocs and inits */
|
/* The xaccTransDestroy() method will remove all
|
||||||
void xaccInitTransaction (Transaction *);/* clears a trans struct */
|
|
||||||
|
|
||||||
/* The xaccTransactionDestroy() method will remove all
|
|
||||||
* of the splits from each of thier accounts, free the memory
|
* of the splits from each of thier accounts, free the memory
|
||||||
* associated with them. This routine must be followed by either
|
* associated with them. This routine must be followed by either
|
||||||
* an xaccTransCommitEdit(), in which case the transaction
|
* an xaccTransCommitEdit(), in which case the transaction
|
||||||
* memory will be freed, or by xaccTransRollbackEdit(), in which
|
* memory will be freed, or by xaccTransRollbackEdit(), in which
|
||||||
* case nothing at all is freed, and averything is put back into
|
* case nothing at all is freed, and everything is put back into
|
||||||
* original order.
|
* original order.
|
||||||
*/
|
*/
|
||||||
void xaccTransDestroy (Transaction *);
|
void xaccTransDestroy (Transaction *);
|
||||||
@ -101,12 +103,26 @@ void xaccTransBeginEdit (Transaction *, int defer);
|
|||||||
void xaccTransCommitEdit (Transaction *);
|
void xaccTransCommitEdit (Transaction *);
|
||||||
void xaccTransRollbackEdit (Transaction *);
|
void xaccTransRollbackEdit (Transaction *);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The xaccTransSetDateSecs() method will modify the posted date
|
||||||
|
* of the transaction. (Footnote: this shouldn't matter to a user,
|
||||||
|
* but anyone modifying the engine should understand that when
|
||||||
|
* xaccTransCommitEdit() is called, the date order of each of the
|
||||||
|
* component splits will be checked, and will be resotred in
|
||||||
|
* ascending date order.)
|
||||||
|
*
|
||||||
|
* The xaccTransSetDate() method does the same thing as
|
||||||
|
* xaccTransSetDateSecs(), but takes a convenient day-month-year format.
|
||||||
|
*
|
||||||
|
* The xaccTransSetDateToday() method does the same thing as
|
||||||
|
* xaccTransSetDateSecs(), but sets the date to the current system
|
||||||
|
* date/time.
|
||||||
|
*/
|
||||||
void xaccTransSetDate (Transaction *, int day, int mon, int year);
|
void xaccTransSetDate (Transaction *, int day, int mon, int year);
|
||||||
void xaccTransSetDateSecs (Transaction *, time_t);
|
void xaccTransSetDateSecs (Transaction *, time_t);
|
||||||
|
|
||||||
/* set the transaction date to the current system time. */
|
|
||||||
void xaccTransSetDateToday (Transaction *);
|
void xaccTransSetDateToday (Transaction *);
|
||||||
|
|
||||||
|
/* set the Num and Description fields ... */
|
||||||
void xaccTransSetNum (Transaction *, const char *);
|
void xaccTransSetNum (Transaction *, const char *);
|
||||||
void xaccTransSetDescription (Transaction *, const char *);
|
void xaccTransSetDescription (Transaction *, const char *);
|
||||||
|
|
||||||
@ -308,20 +324,20 @@ int xaccCountTransactions (Transaction **tarray);
|
|||||||
int xaccCountSplits (Split **sarray);
|
int xaccCountSplits (Split **sarray);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* convenience routine that is essentially identical to
|
* The xaccGetAccountByName() is a convenience routine that
|
||||||
* xaccGetPeerrAccountFromName, except that it accepts the handy
|
* is essentially identical to xaccGetPeerAccountFromName(),
|
||||||
* transaction as root.
|
* except that it accepts the handy transaction as root.
|
||||||
*/
|
*/
|
||||||
Account * xaccGetAccountByName (Transaction *, const char *);
|
Account * xaccGetAccountByName (Transaction *, const char *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The GetOtherSplit() is a convenience routine that returns
|
* The xaccGetOtherSplit() is a convenience routine that returns
|
||||||
* the other of a pair of splits. If there are more than two
|
* the other of a pair of splits. If there are more than two
|
||||||
* splits, it returns NULL.
|
* splits, it returns NULL.
|
||||||
*/
|
*/
|
||||||
Split * xaccGetOtherSplit (Split *);
|
Split * xaccGetOtherSplit (Split *);
|
||||||
|
|
||||||
/* The IsPeerSplit() is a convenience routine that returns
|
/* The xaccIsPeerSplit() is a convenience routine that returns
|
||||||
* a non-zero value if the two splits share a common
|
* a non-zero value if the two splits share a common
|
||||||
* parent transaction, else it returns zero.
|
* parent transaction, else it returns zero.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user