Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_query.h File Reference

Small boolean query language over caller-named fields. More...

#include <stddef.h>
+ Include dependency graph for n_query.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef 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, borrowed), or NULL when the field is unknown/empty.
 

Functions

N_QUERYn_query_compile (const char *expr, char *errbuf, size_t errlen)
 Compile an expression into a query.
 
int n_query_eval (const N_QUERY *query, N_QUERY_GET get, void *user_data)
 Evaluate a compiled query against one record via get.
 
void n_query_free (N_QUERY **query)
 Free a compiled query and set the pointer to NULL.
 

Detailed Description

Small boolean query language over caller-named fields.

Author
Castagnier Mickael
Version
1.0

Definition in file n_query.h.