Changeset

5121:b5a5643f8572

core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides().
author Waqas Hussain <waqas20@gmail.com>
date Wed, 12 Sep 2012 23:41:28 +0500
parents 5120:bcabea740c00
children 5122:b41c33dc7c36
files core/storagemanager.lua plugins/mod_storage_internal.lua plugins/mod_storage_sql.lua plugins/storage/mod_xep0227.lua
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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);
--- 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);
--- 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);