naughty/GetServerInfo: act according spec
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2d0c8940fe
commit
ff0f15f9a0
|
@ -439,8 +439,8 @@ elseif data.member == "CloseNotification" then
|
||||||
destroy(obj)
|
destroy(obj)
|
||||||
end
|
end
|
||||||
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
||||||
-- name of notification app, name of project, version of notification app, project version
|
-- name of notification app, name of vender, version
|
||||||
return "s", "naughty", "s", "awesome", "s", "1337", "s", AWESOME_VERSION
|
return "s", "naughty", "s", "awesome", "s", AWESOME_VERSION:match("%d.%d")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -472,17 +472,15 @@ Introspection 1.0//EN"
|
||||||
<arg name="return_id" type="u" direction="out"/>
|
<arg name="return_id" type="u" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetServerInformation">
|
<method name="GetServerInformation">
|
||||||
<arg name="app_name" type="s" direction="out"/>
|
<arg name="return_name" type="s" direction="out"/>
|
||||||
<arg name="project_name" type="s" direction="out"/>
|
<arg name="return_vendor" type="s" direction="out"/>
|
||||||
<arg name="app_version" type="s" direction="out"/>
|
<arg name="return_version" type="s" direction="out"/>
|
||||||
<arg name="project_version" type="s" direction="out"/>
|
|
||||||
</method>
|
</method>
|
||||||
<method name="GetServerInfo">
|
<method name="GetServerInfo">
|
||||||
<arg name="app_name" type="s" direction="out"/>
|
<arg name="return_name" type="s" direction="out"/>
|
||||||
<arg name="project_name" type="s" direction="out"/>
|
<arg name="return_vendor" type="s" direction="out"/>
|
||||||
<arg name="app_version" type="s" direction="out"/>
|
<arg name="return_version" type="s" direction="out"/>
|
||||||
<arg name="project_version" type="s" direction="out"/>
|
</method>
|
||||||
</method>
|
|
||||||
</interface>
|
</interface>
|
||||||
</node>]=]
|
</node>]=]
|
||||||
return "s", xml
|
return "s", xml
|
||||||
|
|
Loading…
Reference in New Issue