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

Function TSPluginInit

example/plugins/c-api/thread_1/thread_1.cc:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void
62TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED)
63{
64 TSPluginRegistrationInfo info;
65
66 info.plugin_name = PLUGIN_NAME;
67 info.vendor_name = "Apache Software Foundation";
68 info.support_email = "dev@trafficserver.apache.org";
69
70 if (TSPluginRegister(&info) != TS_SUCCESS) {
71 TSError("[%s] Plugin registration failed", PLUGIN_NAME);
72 }
73
74 TSHttpHookAdd(TS_HTTP_OS_DNS_HOOK, TSContCreate(thread_plugin, nullptr));
75}

Callers

nothing calls this directly

Calls 4

TSPluginRegisterFunction · 0.85
TSHttpHookAddFunction · 0.85
TSContCreateFunction · 0.85
TSErrorFunction · 0.50

Tested by

no test coverage detected