Exposing the Plugin API

This commit is contained in:
Pierre Pronchery 2013-02-12 23:37:45 +01:00
parent 592e7bdfe2
commit 875c5584f7

View File

@ -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)