]>
git.proxmox.com Git - ceph.git/blob - ceph/src/compressor/lz4/CompressionPluginLZ4.cc
2 * Ceph - scalable distributed file system
4 * Copyright (C) 2017 XSKY Inc.
6 * Author: Haomai Wang <haomaiwang@gmail.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 "common/ceph_context.h"
18 #include "CompressionPluginLZ4.h"
20 // -----------------------------------------------------------------------------
22 const char *__ceph_plugin_version()
24 return CEPH_GIT_NICE_VER
;
27 // -----------------------------------------------------------------------------
29 int __ceph_plugin_init(CephContext
*cct
,
30 const std::string
& type
,
31 const std::string
& name
)
33 auto instance
= cct
->get_plugin_registry();
35 return instance
->add(type
, name
, new CompressionPluginLZ4(cct
));