MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / install_static_plugins

Function install_static_plugins

db/plugin_handler.c:226–243  ·  view source on GitHub ↗

Install all static plugins. */

Source from the content-addressed store, hash-verified

224
225/* Install all static plugins. */
226int install_static_plugins(void)
227{
228 comdb2_plugin_t *plugin;
229 for (int i = 0; i < sizeof(all_static_plugins) / sizeof(comdb2_plugin_t *);
230 ++i) {
231 plugin = all_static_plugins[i];
232 while (plugin->name) {
233 plugin->flags |= COMDB2_PLUGIN_STATIC;
234 if (install_plugin_int(plugin)) {
235 logmsg(LOGMSG_ERROR, "Failed to install plugin %s.\n",
236 plugin->name);
237 return 1;
238 }
239 ++plugin;
240 }
241 }
242 return 0;
243}
244
245/*
246 Parse the "plugin" line in the lrl file and load the

Callers 1

initFunction · 0.85

Calls 2

install_plugin_intFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected