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

Function TSRemapNewInstance

tests/gold_tests/pluginTest/tsapi/test_tsapi.cc:298–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298TSReturnCode
299TSRemapNewInstance(int argc, char *argv[], void **instance, char *errbuf, int errbuf_size)
300{
301 TSReleaseAssert(errbuf && errbuf_size);
302 TSReleaseAssert(remap_count < remap_mask.size());
303
304 remap_mask[remap_count++] = true;
305 *instance = reinterpret_cast<void *>(remap_count);
306
307 logFile << "TSRemapNewInstance():" << std::endl;
308 for (int i = 0; i < argc; ++i) {
309 logFile << "argv[" << i << "]=" << argv[i] << std::endl;
310 }
311
312 return TS_SUCCESS;
313}
314
315void
316TSRemapDeleteInstance(void *instance)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected