]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: Add fts category
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 28 Apr 2020 08:51:16 +0000 (11:51 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 24 Jun 2020 06:05:32 +0000 (06:05 +0000)
For now mainly so that the fts drivers' categories can inherit from it.

src/plugins/fts/fts-api.c
src/plugins/fts/fts-api.h

index 730fe365326e98e25103c656a278fede298f9b8a..00d16c8f2f2ea4a77a8e7786716d7517d9518140 100644 (file)
 #include "mail-search.h"
 #include "fts-api-private.h"
 
+struct event_category event_category_fts = {
+       .name = "fts",
+};
+
 static ARRAY(const struct fts_backend *) backends;
 
 void fts_backend_register(const struct fts_backend *backend)
index 80b1dc653047cdcf0e8b14b047c6977729d7bc52..fcf0be3cf3f211f5c3b9a7f7e62e32d165d2a67a 100644 (file)
@@ -72,6 +72,8 @@ struct fts_multi_result {
        struct fts_result *box_results;
 };
 
+extern struct event_category event_category_fts;
+
 int fts_backend_init(const char *backend_name, struct mail_namespace *ns,
                     const char **error_r, struct fts_backend **backend_r);
 void fts_backend_deinit(struct fts_backend **backend);