From 875c5584f70168f72b9cdd4990c779997e91b1a5 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 12 Feb 2013 23:37:45 +0100 Subject: [PATCH] Exposing the Plugin API --- src/python/libSystem.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/python/libSystem.py b/src/python/libSystem.py index eca4797..085a51f 100644 --- a/src/python/libSystem.py +++ b/src/python/libSystem.py @@ -48,3 +48,12 @@ class Event: def loop(self): return _libSystem.event_loop(self.event) + + +#Plugin +class Plugin: + def __init__(self): + self.plugin = _libSystem.plugin_new() + + def lookup(self, symbol): + return _libSystem.plugin_lookup(self.plugin, symbol)