From: Sergey Kartashoff Date: Thu, 1 Mar 2001 13:38:39 +0000 (+0000) Subject: Udm_Api_Version function has been added. X-Git-Tag: php-4.0.5RC1~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfe241208168c28e12f7aff135553e6387b36c4b;p=php Udm_Api_Version function has been added. Example updated. --- diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 5453620bf9..f609ccac06 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -99,6 +99,8 @@ static int le_link,le_res; #include function_entry mnogosearch_functions[] = { + PHP_FE(udm_api_version, NULL) + PHP_FE(udm_alloc_agent, NULL) PHP_FE(udm_set_agent_param, NULL) @@ -1044,6 +1046,15 @@ DLEXPORT PHP_FUNCTION(udm_error) /* }}} */ +/* {{{ proto int udm_api_version() + Get mnoGoSearch API version */ +DLEXPORT PHP_FUNCTION(udm_api_version) +{ + RETURN_LONG(UDM_VERSION_ID); +} +/* }}} */ + + #if UDM_VERSION_ID > 30110 /* {{{ proto int udm_get_doc_count(int agent) Get total number of documents in database */ diff --git a/ext/mnogosearch/php_mnogo.h b/ext/mnogosearch/php_mnogo.h index 34a85d3927..948aca9522 100644 --- a/ext/mnogosearch/php_mnogo.h +++ b/ext/mnogosearch/php_mnogo.h @@ -49,6 +49,8 @@ DLEXPORT PHP_RINIT_FUNCTION(mnogosearch); DLEXPORT PHP_MSHUTDOWN_FUNCTION(mnogosearch); DLEXPORT PHP_MINFO_FUNCTION(mnogosearch); +DLEXPORT PHP_FUNCTION(udm_api_version); + DLEXPORT PHP_FUNCTION(udm_alloc_agent); DLEXPORT PHP_FUNCTION(udm_set_agent_param); diff --git a/ext/mnogosearch/test.php b/ext/mnogosearch/test.php index b4dce3470a..2c77e614d3 100644 --- a/ext/mnogosearch/test.php +++ b/ext/mnogosearch/test.php @@ -6,6 +6,9 @@ +mnoGoSearch API version: +
+