Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / crypto / isa-l / isal_crypto_plugin.cc
1 /*
2  * Ceph - scalable distributed file system
3  *
4  * Copyright (C) 2016 Mirantis, Inc.
5  *
6  * Author: Adam Kupczyk <akupczykd@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 "crypto/isa-l/isal_crypto_plugin.h"
18
19 #include "ceph_ver.h"
20 // -----------------------------------------------------------------------------
21
22 const char *__ceph_plugin_version()
23 {
24   return CEPH_GIT_NICE_VER;
25 }
26
27 int __ceph_plugin_init(CephContext *cct,
28                        const std::string& type,
29                        const std::string& name)
30 {
31   PluginRegistry *instance = cct->get_plugin_registry();
32
33   return instance->add(type, name, new ISALCryptoPlugin(cct));
34 }