core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides().

This commit is contained in:
Waqas Hussain 2012-09-12 23:41:28 +05:00
parent d9d38ef125
commit 7daf3c7c14
4 changed files with 5 additions and 5 deletions

View file

@ -33,12 +33,12 @@ local stores_available = multitable.new();
function initialize_host(host) function initialize_host(host)
local host_session = hosts[host]; local host_session = hosts[host];
host_session.events.add_handler("item-added/data-driver", function (event) host_session.events.add_handler("item-added/storage-provider", function (event)
local item = event.item; local item = event.item;
stores_available:set(host, item.name, item); stores_available:set(host, item.name, item);
end); end);
host_session.events.add_handler("item-removed/data-driver", function (event) host_session.events.add_handler("item-removed/storage-provider", function (event)
local item = event.item; local item = event.item;
stores_available:set(host, item.name, nil); stores_available:set(host, item.name, nil);
end); end);

View file

@ -24,4 +24,4 @@ function driver:purge(user)
return datamanager.purge(user, host); return datamanager.purge(user, host);
end end
module:add_item("data-driver", driver); module:provides("storage", driver);

View file

@ -400,4 +400,4 @@ function driver:purge(username)
return commit(true, changed); return commit(true, changed);
end end
module:add_item("data-driver", driver); module:provides("storage", driver);

View file

@ -160,4 +160,4 @@ function driver:open(host, datastore, typ)
return instance; return instance;
end end
module:add_item("data-driver", driver); module:provides("storage", driver);