| 296 | } |
| 297 | |
| 298 | TSReturnCode |
| 299 | TSRemapNewInstance(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 | |
| 315 | void |
| 316 | TSRemapDeleteInstance(void *instance) |