It is possible to associate _a_ specific control parameter file per plugin.
Question: Is is enough?
The ctrl file has a tag to associate a file to a plugin. For example, the following example associate the CCM control parameter ctrl-ccm.xml
to the plugin CCM:
<plugin name="CCM" file="tests/ctrl-ccm.xml"/>
The specific control parameter is handled as an XML file. This file is accessible from the plugin through the docs
class member variable. Here is the steps to implement plugin specific control parameters.
ctrl-plugin.xsd
ctrl_plug_t
. This class must inherit from docs::xmlfile
and should have a constructor with a xmlDocPtr
argument (a pointer to the XML document in memory)docs
class member variable (of type docs::dpl_info*
):xmlDocPtr xml = docs->get_ctrlparams()->get_plugin_xml("CCM");
ctrl_plug_t ctrl_plug = new ctrl_plug(xml);