Plugin interface is unnecessarily complex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Triaged
|
Low
|
Unassigned |
Bug Description
The code to manage and validate plugin loading - like PluginClassHandler is complex beyond the needs of the problem it solves.
For instance: extern unsigned int pluginClassHand
The class PluginClassHand
Also the function - PluginClassHand
---
VTableForScreen
And the duplication of code between functions like:
template <typename T, typename T2>
bool CompPlugin:
{
T * ps = T::get (s);
if (!ps)
return false;
return true;
}
and
template <typename T, typename T2>
bool CompPlugin:
{
T2 * pw = T2::get (w);
if (!pw)
return false;
return true;
}
Strongly suggests a missing abstraction.
no longer affects: | compiz-core |
Changed in compiz: | |
status: | New → Triaged |
importance: | Undecided → Low |