diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index af4b4a65..7328fa4f 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/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/nostrdb/src/nostrdb.h b/nostrdb/src/nostrdb.h index ce12c71d..ffffd756 100644 --- a/nostrdb/src/nostrdb.h +++ b/nostrdb/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 *);