From: Andrew Dolgov Date: Mon, 22 May 2006 11:26:58 +0000 (+0100) Subject: add getVersion() xml-rpc method X-Git-Tag: 1.2.0~38 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a3c0ae7ca2b5293b3fe596d3ec6e427353d4ae82;p=tt-rss.git add getVersion() xml-rpc method --- diff --git a/xml-rpc.php b/xml-rpc.php index 69c5f368..113f3b76 100644 --- a/xml-rpc.php +++ b/xml-rpc.php @@ -23,6 +23,10 @@ pg_query("set client_encoding = 'utf-8'"); } + function getVersion() { + return new xmlrpcval(VERSION); + } + function getSubscribedFeeds($msg) { global $link; @@ -358,8 +362,12 @@ $setArticleUnread_sig = array(array($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcInt, $xmlrpcInt)); + $getVersion_sig = array(array($xmlrpcString)); + $s = new xmlrpc_server( array( + "rss.getVersion" => array("function" => "getVersion", + "signature" => $getVersion_sig), "rss.setArticleRead" => array("function" => "setArticleRead", "signature" => $setArticleRead_sig), "rss.setArticleMarked" => array("function" => "setArticleMarked",