blob: 96d2bef0170ea0a151bf28ccb4f660bcb69e8f8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dict-private.h"
static int refcount = 0;
void dict_drivers_register_builtin(void)
{
if (refcount++ > 0)
return;
dict_driver_register(&dict_driver_client);
dict_driver_register(&dict_driver_file);
dict_driver_register(&dict_driver_fs);
dict_driver_register(&dict_driver_memcached);
dict_driver_register(&dict_driver_memcached_ascii);
dict_driver_register(&dict_driver_redis);
}
void dict_drivers_unregister_builtin(void)
{
if (--refcount > 0)
return;
dict_driver_unregister(&dict_driver_client);
dict_driver_unregister(&dict_driver_file);
dict_driver_unregister(&dict_driver_fs);
dict_driver_unregister(&dict_driver_memcached);
dict_driver_unregister(&dict_driver_memcached_ascii);
dict_driver_unregister(&dict_driver_redis);
}
|