MCPcopy Create free account
hub / github.com/apache/trafficserver / TSPluginInit

Function TSPluginInit

example/plugins/c-api/cert_update/cert_update.cc:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void
78TSPluginInit(int /* argc ATS_UNUSED */, const char ** /* argv ATS_UNUSED */)
79{
80 TSPluginRegistrationInfo info;
81
82 info.plugin_name = PLUGIN_NAME;
83 info.vendor_name = "Apache Software Foundation";
84 info.support_email = "dev@trafficserver.apache.org";
85
86 if (TSPluginRegister(&info) != TS_SUCCESS) {
87 TSError("[%s] Plugin registration failed", PLUGIN_NAME);
88 }
89 Dbg(dbg_ctl, "Initialized.");
90 TSLifecycleHookAdd(TS_LIFECYCLE_MSG_HOOK, TSContCreate(CB_cert_update, nullptr));
91}

Callers

nothing calls this directly

Calls 4

TSPluginRegisterFunction · 0.85
TSLifecycleHookAddFunction · 0.85
TSContCreateFunction · 0.85
TSErrorFunction · 0.50

Tested by

no test coverage detected