mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* add gncQueryAddBooleanMatch() convenience function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7112 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5266dcf818
commit
6cc1fe88c1
@ -4,6 +4,8 @@
|
||||
* save these flags only if the entry is attached to a Bill.
|
||||
* add a Billable column to Bill register
|
||||
|
||||
* add gncQueryAddBooleanMatch() convenience function
|
||||
|
||||
2002-07-09 Derek Atkins <derek@ihftp.com>
|
||||
|
||||
* "global-replace for-each-in-order for-each" because the former
|
||||
|
@ -1040,6 +1040,16 @@ void gncQuerySetBook (QueryNew *q, GNCBook *book)
|
||||
gnc_book_get_guid(book), QUERY_AND);
|
||||
}
|
||||
|
||||
void gncQueryAddBooleanMatch (QueryNew *q, GSList *param_list, gboolean value,
|
||||
QueryOp op)
|
||||
{
|
||||
QueryPredData_t pdata;
|
||||
if (!q || !param_list) return;
|
||||
|
||||
pdata = gncQueryBooleanPredicate (COMPARE_EQUAL, value);
|
||||
gncQueryAddTerm (q, param_list, pdata, op);
|
||||
}
|
||||
|
||||
/**********************************************************************/
|
||||
/* PRIVATE PUBLISHED API FUNCTIONS */
|
||||
|
||||
|
@ -72,6 +72,9 @@ void gncQueryAddGUIDListMatch (QueryNew *q, GSList *param_list,
|
||||
GList *guid_list, guid_match_t options,
|
||||
QueryOp op);
|
||||
|
||||
void gncQueryAddBooleanMatch (QueryNew *q, GSList *param_list, gboolean value,
|
||||
QueryOp op);
|
||||
|
||||
/* Run the query: */
|
||||
GList * gncQueryRun (QueryNew *query);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user