mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-02 05:29:20 -06:00
add file path retreival
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1492 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9e1b1f976e
commit
f6d08dddf8
@ -121,6 +121,15 @@ xaccSessionSetGroup (Session *sess, AccountGroup *grp)
|
||||
|
||||
/* ============================================================== */
|
||||
|
||||
char *
|
||||
xaccSessionGetFilePath (Session *sess)
|
||||
{
|
||||
if (!sess) return NULL;
|
||||
return (sess->fullpath);
|
||||
}
|
||||
|
||||
/* ============================================================== */
|
||||
|
||||
/* hack alert -- we should be yanking this out of
|
||||
* some config file
|
||||
*/
|
||||
|
@ -70,6 +70,11 @@ void xaccSessionDestroy (Session *);
|
||||
* The xaccSessionBeginFile() routine is identical to the xaccSessionBegin()
|
||||
* routine, except that the argument is a filename (i.e. the five
|
||||
* letters "file:" should not be prepended).
|
||||
*
|
||||
* The xaccSessionGetFilePath() routine returns the fully-qualified file
|
||||
* path for the session. That is, if a relative or partial filename
|
||||
* was for the session, then it had to have been fully resolved to
|
||||
* open the session. This routine returns the result of this resolution.
|
||||
*
|
||||
* The xaccSessionGetError() routine can be used to obtain the reason for
|
||||
* any failure. Standard errno values are used. Calling this routine resets
|
||||
@ -135,11 +140,12 @@ void xaccSessionDestroy (Session *);
|
||||
*
|
||||
*/
|
||||
|
||||
AccountGroup * xaccSessionBegin (Session *, char * sessionid);
|
||||
AccountGroup * xaccSessionBeginFile (Session *, char * filename);
|
||||
int xaccSessionGetError (Session *);
|
||||
AccountGroup * xaccSessionGetGroup (Session *);
|
||||
void xaccSessionSetGroup (Session *, AccountGroup *topgroup);
|
||||
AccountGroup * xaccSessionBegin (Session *, char * sessionid);
|
||||
AccountGroup * xaccSessionBeginFile (Session *, char * filename);
|
||||
int xaccSessionGetError (Session *);
|
||||
AccountGroup * xaccSessionGetGroup (Session *);
|
||||
void xaccSessionSetGroup (Session *, AccountGroup *topgroup);
|
||||
char * xaccSessionGetFilePath (Session *);
|
||||
|
||||
void xaccSessionSave (Session *);
|
||||
void xaccSessionEnd (Session *);
|
||||
|
Loading…
Reference in New Issue
Block a user