Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / compressor / snappy / CompressionPluginSnappy.cc
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
16 // -----------------------------------------------------------------------------
17 #include "acconfig.h"
18 #include "ceph_ver.h"
19 #include "CompressionPluginSnappy.h"
20
21 #ifndef BUILDING_FOR_EMBEDDED
22
23 // -----------------------------------------------------------------------------
24
25 const char *__ceph_plugin_version()
26 {
27   return CEPH_GIT_NICE_VER;
28 }
29
30 // -----------------------------------------------------------------------------
31
32 int __ceph_plugin_init(CephContext *cct,
33                        const std::string& type,
34                        const std::string& name)
35 {
36   PluginRegistry *instance = cct->get_plugin_registry();
37
38   return instance->add(type, name, new CompressionPluginSnappy(cct));
39 }
40
41 #endif // !BUILDING_FOR_EMBEDDED