nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 3044c090557d76022ceefe7c34f1732e31eb7f47
parent e4f9c9269ca1fab7081a03ca0a187ad95dcd9d46
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  3 Jan 2024 14:43:35 -0800

filters: add ndb_filter_group_init function

Diffstat:
Msrc/nostrdb.c | 2+-
Msrc/nostrdb.h | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -864,7 +864,7 @@ void ndb_filter_end_field(struct ndb_filter *filter) filter->current = NULL; } -static void ndb_filter_group_init(struct ndb_filter_group *group) +void ndb_filter_group_init(struct ndb_filter_group *group) { group->num_filters = 0; } diff --git a/src/nostrdb.h b/src/nostrdb.h @@ -470,6 +470,7 @@ int ndb_filter_start_generic_field(struct ndb_filter *, char tag); int ndb_filter_matches(struct ndb_filter *, struct ndb_note *); void ndb_filter_reset(struct ndb_filter *); void ndb_filter_end_field(struct ndb_filter *); +void ndb_filter_group_init(struct ndb_filter_group *group); int ndb_filter_group_add(struct ndb_filter_group *group, struct ndb_filter *f); void ndb_filter_destroy(struct ndb_filter *);