| 107 | } |
| 108 | |
| 109 | struct ComponentParameter** makeComponentParameterList(const ParameterDescriptorList& pList) |
| 110 | { |
| 111 | struct ComponentParameter** params = |
| 112 | (struct ComponentParameter**) malloc((pList.size()+1)*sizeof(struct ComponentParameter*)); |
| 113 | for (int i=0;i<pList.size();i++) |
| 114 | { |
| 115 | params[i] = (struct ComponentParameter*) malloc(sizeof(struct ComponentParameter)); |
| 116 | params[i]->identifier = strdup(pList[i].m_identifier.c_str()); |
| 117 | params[i]->defaultValue = strdup(pList[i].m_defaultValue.c_str()); |
| 118 | params[i]->description = strdup(pList[i].m_description.c_str()); |
| 119 | } |
| 120 | params[pList.size()] = NULL; |
| 121 | return params; |
| 122 | } |
| 123 | |
| 124 | struct ComponentParameter** getComponentParameters(const char* id) |
| 125 | { |
no test coverage detected