summaryrefslogtreecommitdiff
path: root/src/plugin.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-08-24 13:42:53 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-08-24 13:42:53 +0200
commit06aa2b6c31a4cf4aed2ba4fd8d8f05cb6e944082 (patch)
tree354bd4c08a57e4a996878939fd20cc22b15d37f2 /src/plugin.cpp
parent60829d3db9ed9272c0baeae78a18cd3dd142b142 (diff)
downloadmobileperf-06aa2b6c31a4cf4aed2ba4fd8d8f05cb6e944082.tar.gz
mobileperf-06aa2b6c31a4cf4aed2ba4fd8d8f05cb6e944082.tar.bz2
Save ABI in global map.
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r--src/plugin.cpp35
1 files changed, 7 insertions, 28 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp
index c47ec80..d1e2e4a 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -107,7 +107,7 @@ CorePluginVTable::setObjectOption (CompObject *object,
RETURN_DISPATCH (object, dispTab, ARRAY_SIZE (dispTab), false,
(object, name, value));
}
-//
+
CorePluginVTable coreVTable;
static bool
@@ -615,15 +615,17 @@ int
CompPlugin::getPluginABI (const char *name)
{
CompPlugin *p = find (name);
+ CompString s = name;
if (!p)
return 0;
- /* MULTIDPYERROR: ABI options should be moved into core */
- CompOption::Vector &options =
- p->vTable->getObjectOptions (core->displays().front ());
+ s += "_ABI";
+
+ if (!core->hasValue (s))
+ return 0;
- return CompOption::getIntOptionNamed (options, "abi");
+ return core->getValue (s).uval;
}
bool
@@ -651,29 +653,6 @@ CompPlugin::checkPluginABI (const char *name,
return true;
}
-bool
-CompPlugin::getPluginDisplayIndex (CompDisplay *d,
- const char *name,
- int *index)
-{
- CompPlugin *p = find (name);
- int value;
-
- if (!p)
- return false;
-
- CompOption::Vector &options = p->vTable->getObjectOptions (d);
-
- value = CompOption::getIntOptionNamed (options, "index", -1);
- if (value < 0)
- return false;
-
- *index = value;
-
- return true;
-}
-
-
CompPlugin::VTable::~VTable ()
{
}