index a0f4ec61db0ece7ebafaf1ed52a96f83db40290e..775057f09e235f9033edc10526a08e65d7f43d47 100644 (file)
--- a/src/core/store-private.h
+++ b/src/core/store-private.h
(((t) == MATCHER_OR) ? "OR" \
: ((t) == MATCHER_AND) ? "AND" \
: ((t) == MATCHER_NOT) ? "NOT" \
- : ((t) == MATCHER_NAME) ? "NAME" \
: ((t) == MATCHER_ANY) ? "ANY" \
: ((t) == MATCHER_ALL) ? "ALL" \
: ((t) == MATCHER_LT) ? "<" \
: ((t) == MATCHER_ISNNULL) ? "IS NOT NULL" \
: "UNKNOWN")
-/* match the name of something */
-typedef struct {
- char *name;
- regex_t *name_re;
-} string_matcher_t;
-
/* matcher base type */
struct sdb_store_matcher {
sdb_object_t super;
} cmp_matcher_t;
#define CMP_M(m) ((cmp_matcher_t *)(m))
-/* match any type of object by it's name */
-typedef struct {
- sdb_store_matcher_t super;
-
- int obj_type;
- string_matcher_t name;
-} name_matcher_t;
-#define NAME_M(m) ((name_matcher_t *)(m))
-
typedef struct {
sdb_store_matcher_t super;
sdb_store_expr_t *expr;