]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /* |
2 | * Ceph - scalable distributed file system | |
3 | * | |
4 | * Copyright (C) 2015 Mirantis, Inc. | |
5 | * | |
6 | * Author: Alyona Kiseleva <akiselyova@mirantis.com> | |
7 | * | |
8 | * This library is free software; you can redistribute it and/or | |
9 | * modify it under the terms of the GNU Lesser General Public | |
10 | * License as published by the Free Software Foundation; either | |
11 | * version 2.1 of the License, or (at your option) any later version. | |
12 | * | |
13 | */ | |
14 | ||
15 | #include "acconfig.h" | |
16 | #include "ceph_ver.h" | |
11fdf7f2 | 17 | #include "common/ceph_context.h" |
7c673cae FG |
18 | #include "CompressionPluginZstd.h" |
19 | ||
7c673cae FG |
20 | // ----------------------------------------------------------------------------- |
21 | ||
22 | const char *__ceph_plugin_version() | |
23 | { | |
24 | return CEPH_GIT_NICE_VER; | |
25 | } | |
26 | ||
27 | // ----------------------------------------------------------------------------- | |
28 | ||
29 | int __ceph_plugin_init(CephContext *cct, | |
30 | const std::string& type, | |
31 | const std::string& name) | |
32 | { | |
f67539c2 | 33 | auto instance = cct->get_plugin_registry(); |
7c673cae FG |
34 | |
35 | return instance->add(type, name, new CompressionPluginZstd(cct)); | |
36 | } |