Esempio n. 1
0
 def __iter__(self):
     startup._init_plugins()
     count = ctypes.c_ulonglong()
     types = core.BNGetScriptingProviderList(count)
     try:
         for i in xrange(0, count.value):
             yield ScriptingProvider(types[i])
     finally:
         core.BNFreeScriptingProviderList(types)
Esempio n. 2
0
 def list(self):
     """List all ScriptingProvider types (read-only)"""
     startup._init_plugins()
     count = ctypes.c_ulonglong()
     types = core.BNGetScriptingProviderList(count)
     result = []
     for i in xrange(0, count.value):
         result.append(ScriptingProvider(types[i]))
     core.BNFreeScriptingProviderList(types)
     return result