Changeset 64939bc in rtems for cpukit/sapi/include/rtems/rbtree.h
- Timestamp:
- Jul 12, 2014, 7:22:22 PM (5 years ago)
- Branches:
- 4.11, master
- Children:
- ed7a028
- Parents:
- 7e119990
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/12/14 19:22:22)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (07/15/14 15:03:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/sapi/include/rtems/rbtree.h
r7e119990 r64939bc 56 56 57 57 /** 58 * @typedef rtems_rbtree_compare_function59 *60 58 * This type defines function pointers for user-provided comparison 61 59 * function. The function compares two nodes in order to determine 62 60 * the order in a red-black tree. 63 61 */ 64 typedef RBTree_Compare _function rtems_rbtree_compare_function;62 typedef RBTree_Compare rtems_rbtree_compare; 65 63 66 64 /** … … 94 92 */ 95 93 RTEMS_INLINE_ROUTINE void rtems_rbtree_initialize( 96 rtems_rbtree_control 97 rtems_rbtree_compare _function compare_function,98 void 99 size_t 100 size_t 101 bool 102 ) 103 { 104 _RBTree_Initialize( the_rbtree, compare _function, starting_address,94 rtems_rbtree_control *the_rbtree, 95 rtems_rbtree_compare compare, 96 void *starting_address, 97 size_t number_nodes, 98 size_t node_size, 99 bool is_unique 100 ) 101 { 102 _RBTree_Initialize( the_rbtree, compare, starting_address, 105 103 number_nodes, node_size, is_unique); 106 104 } … … 112 110 */ 113 111 RTEMS_INLINE_ROUTINE void rtems_rbtree_initialize_empty( 114 rtems_rbtree_control *the_rbtree, 115 rtems_rbtree_compare_function compare_function, 116 bool is_unique 117 ) 118 { 119 _RBTree_Initialize_empty( the_rbtree, compare_function, is_unique ); 112 rtems_rbtree_control *the_rbtree 113 ) 114 { 115 _RBTree_Initialize_empty( the_rbtree ); 120 116 } 121 117 … … 278 274 RTEMS_INLINE_ROUTINE rtems_rbtree_node* rtems_rbtree_find( 279 275 const rtems_rbtree_control *the_rbtree, 280 const rtems_rbtree_node *the_node 281 ) 282 { 283 return _RBTree_Find( the_rbtree, the_node ); 276 const rtems_rbtree_node *the_node, 277 rtems_rbtree_compare compare, 278 bool is_unique 279 ) 280 { 281 return _RBTree_Find( the_rbtree, the_node, compare, is_unique ); 284 282 } 285 283 … … 386 384 RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_insert( 387 385 rtems_rbtree_control *the_rbtree, 388 rtems_rbtree_node *the_node 389 ) 390 { 391 return _RBTree_Insert( the_rbtree, the_node ); 392 } 393 394 /** 395 * @brief Determines whether the tree is unique. 396 */ 397 RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_unique( 398 const rtems_rbtree_control *the_rbtree 399 ) 400 { 401 return _RBTree_Is_unique(the_rbtree); 386 rtems_rbtree_node *the_node, 387 rtems_rbtree_compare compare, 388 bool is_unique 389 ) 390 { 391 return _RBTree_Insert( the_rbtree, the_node, compare, is_unique ); 402 392 } 403 393
Note: See TracChangeset
for help on using the changeset viewer.