plugin modules have 'name' field

pull/977/head
chrox 10 years ago
parent 896ad0e8f8
commit a4d5ec6534

@ -26,6 +26,7 @@ function PluginLoader:loadPlugins()
package.path = package_path package.path = package_path
package.cpath = package_cpath package.cpath = package_cpath
if ok then if ok then
module.name = module.name or "unknownplugin"
module.path = path module.path = path
table.insert(self.plugins, module) table.insert(self.plugins, module)
end end

@ -22,6 +22,7 @@ local dummy = require("ffi/zeromq_h")
More details can be found at calibre/devices/smart_device_app/driver.py. More details can be found at calibre/devices/smart_device_app/driver.py.
--]] --]]
local CalibreCompanion = InputContainer:new{ local CalibreCompanion = InputContainer:new{
name = "calibrecompanion",
-- calibre companion local port -- calibre companion local port
port = 8134, port = 8134,
-- calibre broadcast ports used to find calibre server -- calibre broadcast ports used to find calibre server

@ -13,6 +13,7 @@ local slt2 = require('slt2')
local MyClipping = require("clip") local MyClipping = require("clip")
local EvernoteExporter = InputContainer:new{ local EvernoteExporter = InputContainer:new{
name = "evernote",
login_title = _("Login to Evernote"), login_title = _("Login to Evernote"),
notebook_name = _("Koreader Notes"), notebook_name = _("Koreader Notes"),
evernote_domain = nil, evernote_domain = nil,

@ -28,6 +28,7 @@ int rmdir(const char *);
local dummy = require("ffi/zeromq_h") local dummy = require("ffi/zeromq_h")
local ZSync = InputContainer:new{ local ZSync = InputContainer:new{
name = "zsync",
} }
function ZSync:init() function ZSync:init()

Loading…
Cancel
Save