////////////////////////////////////////////////////////////////////////// Initialize the plugin as a remap plugin.
| 266 | // Initialize the plugin as a remap plugin. |
| 267 | // |
| 268 | TSReturnCode |
| 269 | TSRemapInit(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 | |
| 285 | TSReturnCode |
| 286 | TSRemapNewInstance(int argc, char *argv[], void **ih, char * /* errbuf ATS_UNUSED */, int /* errbuf_size ATS_UNUSED */) |
nothing calls this directly
no test coverage detected