]> git.proxmox.com Git - ceph.git/blame - ceph/src/compressor/lz4/CompressionPluginLZ4.cc
update sources to 12.2.8
[ceph.git] / ceph / src / compressor / lz4 / CompressionPluginLZ4.cc
CommitLineData
31f18b77
FG
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
31f18b77
FG
19// -----------------------------------------------------------------------------
20
21const char *__ceph_plugin_version()
22{
23 return CEPH_GIT_NICE_VER;
24}
25
26// -----------------------------------------------------------------------------
27
28int __ceph_plugin_init(CephContext *cct,
29 const std::string& type,
30 const std::string& name)
31{
32 PluginRegistry *instance = cct->get_plugin_registry();
33
34 return instance->add(type, name, new CompressionPluginLZ4(cct));
35}