From 2a0582368f31d6a1a6353ebdd1a15f429dbda882 Mon Sep 17 00:00:00 2001
From: Roger Planas <roger.planas@isode.com>
Date: Tue, 14 Feb 2017 14:50:24 +0000
Subject: Sluift: Add shortcut for get disco_info

So instead of doing something like this
 local features = client:get({ to = to, query = "<query xmlns='"..sluift.disco.features.DISCO_INFO.."'"..node.."/>" })['features']

we can now do something like this
 local features = client:get_disco_info({ to = to })['features']

That is, avoid raw calls.

Test-information:

Updated test calls to use new API and noticed no different behaviour
to old code.

Change-Id: I0d9a7c25c0f56499487f8aa0e67e30e9fa1b56ac

diff --git a/Sluift/core.lua b/Sluift/core.lua
index aef2506..89c96ba 100644
--- a/Sluift/core.lua
+++ b/Sluift/core.lua
@@ -1,5 +1,5 @@
 --[[
-	Copyright (c) 2013-2014 Isode Limited.
+	Copyright (c) 2013-2017 Isode Limited.
 	All rights reserved.
 	See the COPYING file for more information.
 --]]
@@ -757,7 +757,7 @@ register_help(Client.process_events)
 --	client:set_command{to = 'alice@wonderland.lit', command = { type = 'execute', node = 'uptime' }}
 --
 local get_set_shortcuts = {
-	get = {'software_version', 'disco_items', 'xml', 'dom', 'vcard', 'mam'},
+	get = {'software_version', 'disco_items', 'disco_info', 'xml', 'dom', 'vcard', 'mam'},
 	set = {'command', 'vcard', 'mam'}
 }
 for query_action, query_types in pairs(get_set_shortcuts) do
-- 
cgit v0.10.2-6-g49f6