| 360 | } |
| 361 | |
| 362 | TSReturnCode |
| 363 | TSRemapNewInstance(int argc, char *argv[], void **ih, char * /* errbuf */, int /* errbuf_size */) |
| 364 | { |
| 365 | PluginInfo *const info = new PluginInfo; |
| 366 | |
| 367 | info->config.fromArgs(argc - 2, argv + 2); |
| 368 | |
| 369 | TSCont read_resp_hdr_contp = TSContCreate(read_resp_hdr, nullptr); |
| 370 | TSContDataSet(read_resp_hdr_contp, static_cast<void *>(info)); |
| 371 | info->read_resp_hdr_contp = read_resp_hdr_contp; |
| 372 | |
| 373 | if (!info->config.stat_prefix.empty()) { |
| 374 | init_stats(info->config, info->config.stat_prefix); |
| 375 | } |
| 376 | |
| 377 | *ih = static_cast<void *>(info); |
| 378 | |
| 379 | return TS_SUCCESS; |
| 380 | } |
| 381 | |
| 382 | void |
| 383 | TSRemapDeleteInstance(void *ih) |
nothing calls this directly
no test coverage detected