]>
git.proxmox.com Git - ceph.git/blob - ceph/src/compressor/zstd/CompressionPluginZstd.cc
2 * Ceph - scalable distributed file system
4 * Copyright (C) 2015 Mirantis, Inc.
6 * Author: Alyona Kiseleva <akiselyova@mirantis.com>
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.
17 #include "CompressionPluginZstd.h"
19 #ifndef BUILDING_FOR_EMBEDDED
21 // -----------------------------------------------------------------------------
23 const char *__ceph_plugin_version()
25 return CEPH_GIT_NICE_VER
;
28 // -----------------------------------------------------------------------------
30 int __ceph_plugin_init(CephContext
*cct
,
31 const std::string
& type
,
32 const std::string
& name
)
34 PluginRegistry
*instance
= cct
->get_plugin_registry();
36 return instance
->add(type
, name
, new CompressionPluginZstd(cct
));
39 #endif // !BUILDING_FOR_EMBEDDED