Next: , Previous: libcnx, Up: C API


5.14 libdat

5.14.1 Overview

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

5.14.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

— Function: void lw6dat_warehouse_purge (lw6dat_warehouse_t * warehouse)

warehouse: the object to purge

Purges a warehouse object.

Return value: new object, allocated dynamically

— Function: int lw6dat_warehouse_get_nb_nodes (lw6dat_warehouse_t * warehouse)

warehouse: the warehouse object to query.

Tells how many nodes are registered in the object.

Return value: integer, number of nodes