From: Florian Forster Date: Fri, 25 Dec 2009 10:44:09 +0000 (+0100) Subject: librouteros(3): Add information about versioning. X-Git-Tag: librouteros-1.1.0~3 X-Git-Url: https://git.octo.it/?p=routeros-api.git;a=commitdiff_plain;h=ef2a474c45397259bdbcf41dbba91712ecbd6049 librouteros(3): Add information about versioning. --- diff --git a/doc/librouteros.pod b/doc/librouteros.pod index 74f1863..26b7f5d 100644 --- a/doc/librouteros.pod +++ b/doc/librouteros.pod @@ -209,6 +209,24 @@ the following prototype: The usual semantics apply: You may not alter I and the memory pointed to by I is freed after the callback returned. +=head2 Versioning + +The I library contains version information that can be used at +compile time as well as at runtime. + +At B, the version is available in form of two preprocessor +defines, C and C. C is a numeric +value where the major version is multiplied by 10000 and the minor version is +multiplied by 100. Version I<1.2.3> would therefore be returned as I<10203>. +C is defined to be a string, for example I<"1.2.3"> and can +be used for printing a pretty version information. + +The same information is available at B using two functions which +return the information. The function C returns the numeric value +of C and C returns the value of +C, making it possible to check the version of the actually +used library. + =head1 ERROR HANDLING Some of the functions above return an "error code". This error code can be