X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fcore%2Fstore-private.h;h=a2121f45c211dad50003007e6a438f9958725638;hp=c7d99f9b910ee2abee60b4318c198db39f8ace1e;hb=444db0c3fae176a18166120dd19a7e01ee95823c;hpb=02293b5c98513f52cc2aae5cad81a0399fe32060 diff --git a/src/core/store-private.h b/src/core/store-private.h index c7d99f9..a2121f4 100644 --- a/src/core/store-private.h +++ b/src/core/store-private.h @@ -123,6 +123,7 @@ enum { MATCHER_EQ, MATCHER_GE, MATCHER_GT, + MATCHER_ISNULL, }; #define MATCHER_SYM(t) \ @@ -136,6 +137,7 @@ enum { : ((t) == MATCHER_EQ) ? "=" \ : ((t) == MATCHER_GE) ? ">=" \ : ((t) == MATCHER_GT) ? ">" \ + : ((t) == MATCHER_ISNULL) ? "IS NULL" \ : "UNKNOWN") /* match the name of something */ @@ -188,6 +190,12 @@ typedef struct { } 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;