27#ifndef __NILOREA_QUERY_HEADER
28#define __NILOREA_QUERY_HEADER
71typedef const char* (*N_QUERY_GET)(
const char* field,
void* user_data);
int n_query_eval(const N_QUERY *query, N_QUERY_GET get, void *user_data)
Evaluate a compiled query against one record via get.
const char *(* N_QUERY_GET)(const char *field, void *user_data)
Field-value getter: return the value of field for the record being evaluated (NUL-terminated,...
N_QUERY * n_query_compile(const char *expr, char *errbuf, size_t errlen)
Compile an expression into a query.
void n_query_free(N_QUERY **query)
Free a compiled query and set the pointer to NULL.
Opaque compiled query (see n_query_compile / n_query_eval / n_query_free).