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:
Linas Vepstas 2000-05-15 04:00:19 +00:00
parent ccf1944f3a
commit 66af6ed055
4 changed files with 19 additions and 2 deletions

View File

@ -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;

View File

@ -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 ********************************/

View 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__ */

View File

@ -132,6 +132,15 @@ xaccSessionSetGroup (Session *sess, AccountGroup *grp)
/* ============================================================== */
Backend *
xaccSessionGetBackend (Session *sess)
{
if (!sess) return NULL;
return (sess->backend);
}
/* ============================================================== */
char *
xaccSessionGetFilePath (Session *sess)
{