]> git.wh0rd.org - tt-rss.git/commitdiff
add getVersion() xml-rpc method
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 22 May 2006 11:26:58 +0000 (12:26 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 22 May 2006 11:26:58 +0000 (12:26 +0100)
xml-rpc.php

index 69c5f3689a35a8595a5be366f22af3d1a86400e7..113f3b7649c0b06d60179850a104150a25120858 100644 (file)
                pg_query("set client_encoding = 'utf-8'");
        }
 
+       function getVersion() {
+               return new xmlrpcval(VERSION);
+       }
+
        function getSubscribedFeeds($msg) {
                global $link;
 
        $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",