35 write_one_account (FILE* out,
38 gboolean allow_incompat)
43 gnc_account_dom_tree_create (account, gd && gd->exporting, allow_incompat);
45 xmlElemDump (out, NULL, accnode);
46 xmlFreeNode (accnode);
48 g_return_val_if_fail(gd, FALSE);
50 if (ferror (out) || fprintf (out,
"\n") < 0)
53 gd->counter.accounts_loaded++;
54 sixtp_run_callback (gd,
"account");
61 GList* descendants, *node;
62 gboolean allow_incompat = TRUE;
63 gboolean success = TRUE;
66 if (!write_one_account (out, root, gd, allow_incompat))
70 for (node = descendants; node; node = g_list_next (node))
72 if (!write_one_account (out, static_cast<Account*> (node->data),
80 g_list_free (descendants);
85 write_accounts (FILE* out, QofBook* book,
sixtp_gdv2* gd)
87 return write_account_tree (out, gnc_book_get_root_account (book), gd);
GList * gnc_account_get_descendants(const Account *account)
This routine returns a flat list of all of the accounts that are descendants of the specified account...