mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
minor sql backend fixups
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2326 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ccf1944f3a
commit
66af6ed055
@ -51,6 +51,7 @@
|
||||
/** STRUCTS *********************************************************/
|
||||
struct _account {
|
||||
/* public data, describes account */
|
||||
GUID guid; /* globally unique account id */
|
||||
|
||||
/* The accountName is an arbitrary string assinged by the user.
|
||||
* It is intended to a short, 5 to 30 character long string that
|
||||
@ -118,8 +119,6 @@ struct _account {
|
||||
int id; /* unique account id, internally assigned */
|
||||
char flags;
|
||||
|
||||
GUID guid; /* globally unique account id */
|
||||
|
||||
/* protected data, cached parameters */
|
||||
double balance;
|
||||
double cleared_balance;
|
||||
|
@ -92,4 +92,11 @@ xaccGroupSetBackend (AccountGroup *grp, Backend *be)
|
||||
grp->backend = be;
|
||||
}
|
||||
|
||||
Backend *
|
||||
xaccGroupGetBackend (AccountGroup *grp)
|
||||
{
|
||||
if (!grp) return NULL;
|
||||
return (grp->backend);
|
||||
}
|
||||
|
||||
/************************* END OF FILE ********************************/
|
||||
|
@ -50,6 +50,8 @@ Backend * xaccTransactionGetBackend (Transaction *);
|
||||
* The xaccGroupSetBackend() associates a backend to a group
|
||||
*/
|
||||
void xaccGroupSetBackend (AccountGroup *, Backend *);
|
||||
Backend * xaccGroupGetBackend (AccountGroup *);
|
||||
Backend * xaccSessionGetBackend (Session *);
|
||||
|
||||
|
||||
#endif /* __XACC_BACKEND_P_H__ */
|
||||
|
@ -132,6 +132,15 @@ xaccSessionSetGroup (Session *sess, AccountGroup *grp)
|
||||
|
||||
/* ============================================================== */
|
||||
|
||||
Backend *
|
||||
xaccSessionGetBackend (Session *sess)
|
||||
{
|
||||
if (!sess) return NULL;
|
||||
return (sess->backend);
|
||||
}
|
||||
|
||||
/* ============================================================== */
|
||||
|
||||
char *
|
||||
xaccSessionGetFilePath (Session *sess)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user