Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / compressor / lz4 / CompressionPluginLZ4.cc
1 /*
2  * Ceph - scalable distributed file system
3  *
4  * Copyright (C) 2017 XSKY Inc.
5  *
6  * Author: Haomai Wang <haomaiwang@gmail.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"
17 #include "CompressionPluginLZ4.h"
18
19 #ifndef BUILDING_FOR_EMBEDDED
20
21 // -----------------------------------------------------------------------------
22
23 const char *__ceph_plugin_version()
24 {
25   return CEPH_GIT_NICE_VER;
26 }
27
28 // -----------------------------------------------------------------------------
29
30 int __ceph_plugin_init(CephContext *cct,
31                        const std::string& type,
32                        const std::string& name)
33 {
34   PluginRegistry *instance = cct->get_plugin_registry();
35
36   return instance->add(type, name, new CompressionPluginLZ4(cct));
37 }
38
39 #endif // !BUILDING_FOR_EMBEDDED