|
Typedefs |
typedef lnc_search | lnc_search |
| Search object.
|
Enumerations |
enum | lnc_operator { LNC_OP_AND,
LNC_OP_OR
} |
enum | lnc_comparator { LNC_COMP_LT,
LNC_COMP_GT,
LNC_COMP_EQ,
LNC_COMP_NE
} |
Functions |
lnc_search * | lnc_search_create (lnc_dataset *dset) |
| Creates an new search object.
|
void | lnc_search_free (lnc_search *search) |
| Free's a search and it resources.
|
int | lnc_search_add_operator (lnc_search *search, lnc_operator op) |
| Add an operation in RPN to the search.
|
int | lnc_search_add_comparator (lnc_search *search, char *field, lnc_comparator comp, char *value) |
| Add a comparator in RPN to the search.
|
int | lnc_search_add_custom_comparator (lnc_search *search, lnc_custom_comparator comp) |
| Add a comparator in RPN to the search.
|
int | lnc_search_get_results (lnc_search *search, lnc_progress progress, lnc_slist **result, unsigned int flags) |
| Execute a search.
|
void | lnc_search_put_results (lnc_slist *results) |
| Release the search results.
|
int | lnc_search_get_hits (lnc_search *search) |
| Get the number of search hits.
|
int | lnc_search_get_tests (lnc_search *search) |
| Get the number of search tests.
|