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

Function TSRemapInit

plugins/conf_remap/conf_remap.cc:268–283  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// Initialize the plugin as a remap plugin.

Source from the content-addressed store, hash-verified

266// Initialize the plugin as a remap plugin.
267//
268TSReturnCode
269TSRemapInit(TSRemapInterface *api_info, char *errbuf, int errbuf_size)
270{
271 if (!api_info) {
272 TSstrlcpy(errbuf, "[TSRemapInit] - Invalid TSRemapInterface argument", errbuf_size);
273 return TS_ERROR;
274 }
275
276 if (api_info->size < sizeof(TSRemapInterface)) {
277 TSstrlcpy(errbuf, "[TSRemapInit] - Incorrect size of TSRemapInterface structure", errbuf_size);
278 return TS_ERROR;
279 }
280
281 Dbg(dbg_ctl, "remap plugin is successfully initialized");
282 return TS_SUCCESS; /* success */
283}
284
285TSReturnCode
286TSRemapNewInstance(int argc, char *argv[], void **ih, char * /* errbuf ATS_UNUSED */, int /* errbuf_size ATS_UNUSED */)

Callers

nothing calls this directly

Calls 1

TSstrlcpyFunction · 0.85

Tested by

no test coverage detected