Ticket #897: obj_filter.h

File obj_filter.h, 383 bytes (added by tegzed, 10 years ago)

object filter for the command system

Line 
1
2#ifndef OBJ_FILTER
3#define OBJ_FILTER
4
5//forward declaration
6struct attr;
7
8struct obj_filter_t {
9  char iterator_type[64];
10  char filter_expr[256];
11  int idx;
12};
13
14struct obj_list {
15  struct navit_object* objs;
16  int size;
17};
18
19int parse_obj_filter(const char*input, struct obj_filter_t* out);
20struct attr* filter_object(struct attr* root,char*iter_type,char*expr, int idx);
21
22#endif
23