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

Function TSRemapNewInstance

plugins/slice/slice.cc:362–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362TSReturnCode
363TSRemapNewInstance(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
382void
383TSRemapDeleteInstance(void *ih)

Callers

nothing calls this directly

Calls 5

TSContCreateFunction · 0.85
TSContDataSetFunction · 0.85
fromArgsMethod · 0.80
init_statsFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected