[vdr] [ANNOUNCE] vdr-span-0.0.1
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Sun Sep 3 12:26:50 CEST 2006
Christian Leuschen wrote:
> ...
> @Klaus: Is there an obstacle to get all plugins that support some kind
> of service?
> s.th like
>
> static cPlugin **CallAllServicePlugins(const char *Id, void *Data = NULL);
>
> that returns a list of all plugins supporting the requested service. I
> would like to
> use it to collect the names of all data-providers and all
> visualization-clients.
You can use cPluginManager::GetPlugin(int Index) to loop through
all plugins, and call each plugin's Service() function without
a 'Data' pointer. If the call returns 'true', the service is supported.
Klaus
More information about the vdr
mailing list