Next: , Previous: libcnx, Up: C API


5.12 libdat

5.12.1 Overview

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

5.12.2 API

— Function: int lw6dat_test (int mode)

mode: 0 for check only, 1 for full test

Runs the dat module test suite.

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

— Function: lw6dat_warehouse_t * lw6dat_warehouse_new (u_int64_t local_node_id)

Creates a new warehouse object.

Return value: new object, allocated dynamically

— Function: void lw6dat_warehouse_free (lw6dat_warehouse_t * warehouse)

warehouse: the object to free

Frees a warehouse object.

Return value: new object, allocated dynamically