From: Burkhard P. <pl...@ip...> - 2007-10-31 17:46:20
|
Hi, Dennis Smit schrieb: > Parameters: > There is no nth parameter function because parameters are entered in a > hashmap by their name. You can iterate this hashmap tho! > > visual_collection_foreach_do > (VISUAL_COLLECTION(¶mcontainer->entries), VisHashmapChainEntry *entry) > { > char *name = entry->key.key.string; > VisParamEntry *paramEntry = VISUAL_PARAMENTRY(entry->data); > } visual_collection_foreach_end; That's not for 0.4.0, only for CVS, right? Depending on non-released libs is not good. Any alternative, which works with 0.4.0? Maybe with visual_collection_get_iter()/visual_collection_iter_next()? > I have to admit that I didn't test this, and also won't deny that this > should have been much easier. Indeed :) > Another (half completed) feature is the VisUI stuff that plugins can > expose which is an abstract representation of the configuration UI. I need to convert the parameter descriptions to gmerlins own format, which can then be used for saving values in the registry, building GUI dialogs or passing options on the commandline. Gmerlin plugins never assume a GUI to be present, they just tell what parameters they have. Foreign plugins (ladspa or libvisual), get a small wrapper, which lets them behave exactly as native plugins. Burkhard |