MCPcopy Create free account
hub / github.com/ceph/ceph / __ceph_plugin_init

Function __ceph_plugin_init

src/test/compressor/compressor_plugin_example.cc:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51// -----------------------------------------------------------------------------
52
53int __ceph_plugin_init(CephContext *cct,
54 const std::string& type,
55 const std::string& name)
56{
57 PluginRegistry *instance = cct->get_plugin_registry();
58
59 return instance->add(type, name, new CompressorPluginExample(cct));
60}

Callers

nothing calls this directly

Calls 2

get_plugin_registryMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected