more account-info things

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1535 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/xacc-12-patch
Linas Vepstas 28 years ago
parent e55822ef1f
commit e8896079b9

@ -69,6 +69,7 @@ void
xaccInitInvAcct (InvAcct *iacc)
{
if (!iacc) return;
iacc->type = -1;
iacc->pricesrc = NULL;
iacc->brokerid = NULL;
iacc->acctid = NULL;
@ -89,6 +90,7 @@ xaccFreeInvAcct (InvAcct *iacc)
if (iacc->prodtype) { free(iacc->prodtype); iacc->prodtype = NULL; }
if (iacc->secid) { free(iacc->secid); iacc->secid = NULL; }
if (iacc->secidtype) { free(iacc->secidtype); iacc->secidtype = NULL; }
iacc->type = -1;
}
/* =========================================================== */

@ -43,6 +43,7 @@
*/
struct _BankAcct
{
short type; /* must match Account::type */
char * bankid; /* routing and transit number */
char * branchid; /* branch office bank identifier */
char * acctid; /* account number */
@ -57,6 +58,7 @@ struct _BankAcct
*/
struct _InvAcct
{
short type; /* must match Account::type */
char * pricesrc; /* source for price quotes ...
* one of Yahoo, Fidelity, TRowePrice, etc.
*/
@ -74,6 +76,7 @@ struct _InvAcct
};
union _AccInfo {
short type; /* must match Account::type */
BankAcct bank_acct;
InvAcct inv_acct;
};

@ -84,6 +84,7 @@ xaccInitAccount (Account * acc)
acc->flags = 0;
acc->type = -1;
acc->accInfo = NULL;
acc->accountName = NULL;
acc->accountCode = NULL;

Loading…
Cancel
Save