src/engine/gnc-lot.[ch]: provide gnc_lot_get_book() function

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7018 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2002-06-24 22:28:33 +00:00
parent 93cbc81065
commit e2299697df
2 changed files with 7 additions and 1 deletions

View File

@ -130,6 +130,12 @@ gnc_lot_lookup (const GUID *guid, GNCBook *book)
guid, GNC_ID_LOT); guid, GNC_ID_LOT);
} }
GNCBook *
gnc_lot_get_book (GNCLot *lot)
{
if (!lot) return NULL;
return lot->book;
}
/* ============================================================= */ /* ============================================================= */

View File

@ -45,7 +45,7 @@ void gnc_lot_destroy (GNCLot *);
const GUID * gnc_lot_get_guid (GNCLot *p); const GUID * gnc_lot_get_guid (GNCLot *p);
GNCLot * gnc_lot_lookup (const GUID *guid, GNCBook *book); GNCLot * gnc_lot_lookup (const GUID *guid, GNCBook *book);
GNCBook * gnc_lot_get_book (GNCLot *);
/* The gnc_lot_add_split() routine adds a split to this lot. Note /* The gnc_lot_add_split() routine adds a split to this lot. Note
* that *all* splits in a lot must also be in the same account. * that *all* splits in a lot must also be in the same account.