| 77 | } |
| 78 | |
| 79 | char** engine_buildParameterMap(const ParameterMap& params) { |
| 80 | char** out = (char**) malloc((params.size()*2+1)*sizeof(char*)); |
| 81 | char** ptr = out; |
| 82 | for (ParameterMap::const_iterator it=params.begin(); |
| 83 | it!=params.end(); it++) |
| 84 | { |
| 85 | ptr[0] = strdup(it->first.c_str()); |
| 86 | ptr[1] = strdup(it->second.c_str()); |
| 87 | ptr += 2; |
| 88 | } |
| 89 | *ptr = NULL; |
| 90 | return out; |
| 91 | } |
| 92 | |
| 93 | struct IOInfo* engine_getInputInfos(void* engine,char* input) { |
| 94 | Engine* e = static_cast<Engine*>(engine); |
no test coverage detected