add getVersion() xml-rpc method

This commit is contained in:
Andrew Dolgov 2006-05-22 12:26:58 +01:00
parent f31673f749
commit a3c0ae7ca2
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,10 @@
pg_query("set client_encoding = 'utf-8'"); pg_query("set client_encoding = 'utf-8'");
} }
function getVersion() {
return new xmlrpcval(VERSION);
}
function getSubscribedFeeds($msg) { function getSubscribedFeeds($msg) {
global $link; global $link;
@ -358,8 +362,12 @@
$setArticleUnread_sig = array(array($xmlrpcString, $setArticleUnread_sig = array(array($xmlrpcString,
$xmlrpcString, $xmlrpcString, $xmlrpcInt, $xmlrpcInt)); $xmlrpcString, $xmlrpcString, $xmlrpcInt, $xmlrpcInt));
$getVersion_sig = array(array($xmlrpcString));
$s = new xmlrpc_server( $s = new xmlrpc_server(
array( array(
"rss.getVersion" => array("function" => "getVersion",
"signature" => $getVersion_sig),
"rss.setArticleRead" => array("function" => "setArticleRead", "rss.setArticleRead" => array("function" => "setArticleRead",
"signature" => $setArticleRead_sig), "signature" => $setArticleRead_sig),
"rss.setArticleMarked" => array("function" => "setArticleMarked", "rss.setArticleMarked" => array("function" => "setArticleMarked",