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

Function TSPluginInit

tests/tools/plugins/fatal_shutdown.cc:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void
54TSPluginInit(int /* argc ATS_UNUSED */, const char ** /* argv ATS_UNUSED */)
55{
56 TSPluginRegistrationInfo info;
57
58 info.plugin_name = plugin_name;
59 info.vendor_name = vendor_name;
60 info.support_email = support_email;
61
62 if (TSPluginRegister(&info) != TS_SUCCESS) {
63 TSEmergency("[%s] plugin registration failed", plugin_name);
64 }
65
66 TSLifecycleHookAdd(TS_LIFECYCLE_TASK_THREADS_READY_HOOK, TSContCreate(LifecycleHookTracer, TSMutexCreate()));
67}

Callers

nothing calls this directly

Calls 5

TSPluginRegisterFunction · 0.85
TSEmergencyFunction · 0.85
TSLifecycleHookAddFunction · 0.85
TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85

Tested by

no test coverage detected