]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/libbenchmark/src/libbenchmark_topology/libbenchmark_topology_insert.c
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / libbenchmark / src / libbenchmark_topology / libbenchmark_topology_insert.c
1 /***** includes *****/
2 #include "libbenchmark_topology_internal.h"
3
4
5
6
7
8 /****************************************************************************/
9 void libbenchmark_topology_insert( struct libbenchmark_topology_state *ts, struct libbenchmark_topology_node_state *tns )
10 {
11   LFDS710_PAL_ASSERT( ts != NULL );
12   LFDS710_PAL_ASSERT( tns != NULL );
13
14   LFDS710_BTREE_AU_SET_KEY_IN_ELEMENT( tns->baue, tns );
15   LFDS710_BTREE_AU_SET_VALUE_IN_ELEMENT( tns->baue, tns );
16   lfds710_btree_au_insert( &ts->topology_tree, &tns->baue, NULL );
17
18   return;
19 }
20