MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / init

Method init

dds/DCPS/security/BuiltInPluginLoader.cpp:21–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace Security {
20
21int
22BuiltInPluginLoader::init(int /*argc*/, ACE_TCHAR* /*argv*/[])
23{
24 const OPENDDS_STRING PLUGIN_NAME("BuiltIn");
25 SecurityPluginInst_rch plugin = TheSecurityRegistry->get_plugin_inst(
26 PLUGIN_NAME, false /* don't attempt to load the plugin */);
27 if (!plugin) {
28 plugin = DCPS::make_rch<BuiltInSecurityPluginInst>();
29 TheSecurityRegistry->register_plugin(PLUGIN_NAME, plugin);
30 }
31
32 SecurityConfig_rch default_config =
33 TheSecurityRegistry->create_config(SecurityRegistry::DEFAULT_CONFIG_NAME,
34 plugin);
35
36 if (TheSecurityRegistry->has_no_configs()) {
37 TheSecurityRegistry->default_config(default_config);
38 }
39
40 TheSecurityRegistry->builtin_config(default_config);
41
42 return 0;
43}
44
45ACE_FACTORY_DEFINE(OpenDDS_Security, BuiltInPluginLoader);
46ACE_STATIC_SVC_DEFINE(

Callers

nothing calls this directly

Calls 6

get_plugin_instMethod · 0.80
register_pluginMethod · 0.80
has_no_configsMethod · 0.80
default_configMethod · 0.80
builtin_configMethod · 0.80
create_configMethod · 0.45

Tested by

no test coverage detected