# HG changeset patch # User Waqas Hussain # Date 1347475288 -18000 # Node ID b5a5643f8572de108f4ac8f989b0f923600af534 # Parent bcabea740c0034d3f559b4fa7f7ba3ff886633cb core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides(). diff -r bcabea740c00 -r b5a5643f8572 core/storagemanager.lua --- a/core/storagemanager.lua Wed Sep 12 22:22:31 2012 +0500 +++ b/core/storagemanager.lua Wed Sep 12 23:41:28 2012 +0500 @@ -33,12 +33,12 @@ function initialize_host(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; stores_available:set(host, item.name, item); 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; stores_available:set(host, item.name, nil); end); diff -r bcabea740c00 -r b5a5643f8572 plugins/mod_storage_internal.lua --- a/plugins/mod_storage_internal.lua Wed Sep 12 22:22:31 2012 +0500 +++ b/plugins/mod_storage_internal.lua Wed Sep 12 23:41:28 2012 +0500 @@ -24,4 +24,4 @@ return datamanager.purge(user, host); end -module:add_item("data-driver", driver); +module:provides("storage", driver); diff -r bcabea740c00 -r b5a5643f8572 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Wed Sep 12 22:22:31 2012 +0500 +++ b/plugins/mod_storage_sql.lua Wed Sep 12 23:41:28 2012 +0500 @@ -400,4 +400,4 @@ return commit(true, changed); end -module:add_item("data-driver", driver); +module:provides("storage", driver); diff -r bcabea740c00 -r b5a5643f8572 plugins/storage/mod_xep0227.lua --- a/plugins/storage/mod_xep0227.lua Wed Sep 12 22:22:31 2012 +0500 +++ b/plugins/storage/mod_xep0227.lua Wed Sep 12 23:41:28 2012 +0500 @@ -160,4 +160,4 @@ return instance; end -module:add_item("data-driver", driver); +module:provides("storage", driver);