146#define DB_SEARCH_TREE 0x0
147#define DB_SEARCH_FLAT 0x1
148#define DB_SEARCH_HIDDEN 0x2
149#define DB_SEARCH_RETURN_UNIQ_DP 0x4
150#define DB_SEARCH_QUIET 0x8
181#define DB_LS_PRIM 0x1
182#define DB_LS_COMB 0x2
183#define DB_LS_REGION 0x4
184#define DB_LS_HIDDEN 0x8
185#define DB_LS_NON_GEOM 0x10
186#define DB_LS_TOPS 0x20
187#define DB_LS_CYCLIC 0x40
Header file for the BRL-CAD common definitions.
int(* db_search_callback_t)(int, const char *[], void *)
int db_search(struct bu_ptbl *results, int flags, const char *filter, int path_c, struct directory **path_v, struct db_i *dbip, struct db_search_context *ctx)
Search for objects in a geometry database using filters.
void db_search_register_data(struct db_search_context *, void *)
Register a userdata for the callback.
struct db_search_context * db_search_context_create(void)
Allocates a new context.
void db_search_free(struct bu_ptbl *search_results)
size_t db_ls(const struct db_i *dbip, int flags, const char *pattern, struct directory ***dpv)
void db_search_register_exec(struct db_search_context *, db_search_callback_t)
Register a callback for -exec filters.
void db_search_context_destroy(struct db_search_context *ctx)
Free a context created by db_search_context_create.
int db_cyclic_paths(struct bu_ptbl *cyclic_paths, const struct db_i *dbip, struct directory *sdp)
Execution context for the -exec filter.
db_search_callback_t _e_callback
A function that evaluates an array of strings and returns a boolean.
void * _e_userdata
A pointer that will be passed to the callback, usually a pointer to an interpreter.