Next: , Previous: libcfg, Up: C API


5.6 libcli

5.6.1 Overview

View lcov test coverage results on http://www.gnu.org/software/liquidwar6/coverage/src/lib/cli/index.html.

5.6.2 API

— Function: lw6cli_oob_t * lw6cli_oob_new (char * public_url, lw6cli_verify_callback_func_t verify_callback_func, void * verify_callback_data)

public_url: the address of the distant server to test

verify_callback_func: a function which will be called when a node has been verified

verify_callback_data: additionnal data passed to the callback func

Create a new OOB structure, copying required objects. We need to make copies for this is for usage in a separate thread. The thread member is not set here since the right way to do things is first to set up data then to fire the thread.

Return value: new object

— Function: void lw6cli_oob_free (lw6cli_oob_t * oob)

oob: the object to free

Frees an OOB structure.

Return value: none

— Function: int lw6cli_test (int mode)

mode: 0 for check only, 1 for full test

Runs the cli module test suite.

Return value: 1 if test is successfull, 0 on error.