1 /** 2 * 3 * \file rbtree.h 4 * /brief Alternative symbol names for unbound's rbtree.h 5 * 6 */ 7 /* 8 * Copyright (c) 2017, NLnet Labs, the getdns team 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions are met: 13 * * Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * * Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * * Neither the names of the copyright holders nor the 19 * names of its contributors may be used to endorse or promote products 20 * derived from this software without specific prior written permission. 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 25 * DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY 26 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 29 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 #ifndef RBTREE_H_SYMBOLS 34 #define RBTREE_H_SYMBOLS 35 #define rbnode_type _getdns_rbnode_t 36 #define rbtree_null_node _getdns_rbtree_null_node 37 #define rbtree_type _getdns_rbtree_t 38 #define rbtree_create _getdns_rbtree_create 39 #define rbtree_init _getdns_rbtree_init 40 #define rbtree_insert _getdns_rbtree_insert 41 #define rbtree_delete _getdns_rbtree_delete 42 #define rbtree_search _getdns_rbtree_search 43 #define rbtree_find_less_equal _getdns_rbtree_find_less_equal 44 #define rbtree_first _getdns_rbtree_first 45 #define rbtree_last _getdns_rbtree_last 46 #define rbtree_next _getdns_rbtree_next 47 #define rbtree_previous _getdns_rbtree_previous 48 #define traverse_postorder _getdns_traverse_postorder 49 #include "util/orig-headers/rbtree.h" 50 #endif 51