MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / makeComponentParameterList

Function makeComponentParameterList

src_cpp/yaafe-python/yaafecore.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109struct 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
124struct ComponentParameter** getComponentParameters(const char* id)
125{

Callers 2

getComponentParametersFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected