index c7d99f9b910ee2abee60b4318c198db39f8ace1e..a2121f45c211dad50003007e6a438f9958725638 100644 (file)
--- a/src/core/store-private.h
+++ b/src/core/store-private.h
MATCHER_EQ,
MATCHER_GE,
MATCHER_GT,
+ MATCHER_ISNULL,
};
#define MATCHER_SYM(t) \
: ((t) == MATCHER_EQ) ? "=" \
: ((t) == MATCHER_GE) ? ">=" \
: ((t) == MATCHER_GT) ? ">" \
+ : ((t) == MATCHER_ISNULL) ? "IS NULL" \
: "UNKNOWN")
/* match the name of something */
} attr_matcher_t;
#define ATTR_M(m) ((attr_matcher_t *)(m))
+typedef struct {
+ sdb_store_matcher_t super;
+ char *attr_name; /* we only support matching attributes */
+} isnull_matcher_t;
+#define ISNULL_M(m) ((isnull_matcher_t *)(m))
+
/* match using conditionals */
typedef struct {
sdb_store_matcher_t super;