| 51 | } |
| 52 | |
| 53 | void |
| 54 | TSPluginInit(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 | } |
nothing calls this directly
no test coverage detected