X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Flibrouteros.pod;h=74f1863c9bee8ffddaadcf8669d7aa0d832da130;hb=e6df5f10632408478c64c6e4b1fdf415a243a935;hp=0a835396ca8f932292029959f35574f6c8715142;hpb=3b8c8759609a5937fc7948ce2712ca1e2d8a8060;p=routeros-api.git 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