From: Florian Forster Date: Wed, 23 Dec 2009 16:44:27 +0000 (+0100) Subject: librouteros(3): Added documentation for "system resource". X-Git-Tag: librouteros-1.1.0~5 X-Git-Url: https://git.octo.it/?p=routeros-api.git;a=commitdiff_plain;h=e6df5f10632408478c64c6e4b1fdf415a243a935 librouteros(3): Added documentation for "system resource". --- diff --git a/doc/librouteros.pod b/doc/librouteros.pod index 0a83539..74f1863 100644 --- a/doc/librouteros.pod +++ b/doc/librouteros.pod @@ -188,6 +188,27 @@ 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 High level interface functions for "system resource" + +This high level interface makes it easy to access several system related +metrics, such as memory and disk space used. The data returned is equivalent to +running C. The parsed data is passed to a callback +function in form of a B structure. + +The query function has the following prototype: + + int ros_system_resource (ros_connection_t *c, + ros_system_resource_handler_t handler, void *user_data); + +I is the usual connection ocject. I is a pointer to a function with +the following prototype: + + int callback (ros_connection_t *c, + const ros_system_resource_t *r, void *user_data); + +The usual semantics apply: You may not alter I and the memory pointed to by +I is freed after the callback returned. + =head1 ERROR HANDLING Some of the functions above return an "error code". This error code can be