diff options
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python/__init__.py b/python/__init__.py index d88703cc..a3ba0453 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -118,8 +118,10 @@ class PluginManagerLoadPluginCallback(object): def __init__(self): self.cb = ctypes.CFUNCTYPE( ctypes.c_bool, - ctypes.c_char_p, - ctypes.c_char_p, + core.compatstring, + core.compatstring, + # ctypes.c_char_p, + # ctypes.c_char_p, ctypes.c_void_p)(self._load_plugin) def _load_plugin(self, repo_path, plugin_path, ctx): @@ -147,7 +149,7 @@ class PluginManagerLoadPluginCallback(object): load_plugin = PluginManagerLoadPluginCallback() -core.BNRegisterForPluginLoading(_plugin_api_name.encode("utf8"), load_plugin.cb, 0) +core.BNRegisterForPluginLoading(_plugin_api_name, load_plugin.cb, 0) class _DestructionCallbackHandler(object): |
