/* * Copyright (c) 2002-2004 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * * $Id: bht2.h,v 1.10 2005/06/16 00:09:34 ca Exp $ */ #ifndef SM_BHT2_H #define SM_BHT2_H 1 #define SM_TWO_KEYS 1 #define sm_bht_entry_S bht2_entry_S #define sm_bht_entry_T bht2_entry_T #define sm_bht_entry_P bht2_entry_P #define sm_bht_S bht2_S #define sm_bht_T bht2_T #define sm_bht_P bht2_P #define sm_bht_new bht2_new #define sm_bht_add bht2_add #define sm_bht_locate bht2_locate #define sm_bht_find bht2_find #define sm_bht_rm bht2_rm #define sm_bht_rm_all bht2_rm_all #define sm_bht_destroy bht2_destroy #define sm_bht_walk bht2_walk #define sm_bht_stats bht2_stats #define sm_bhfree_F bh2free_F #define sm_bhwalk_F bh2walk_F #define sm_bht_create bh2_create #define sm_bht_setopt bh2_setopt #define sm_bht_getopt bh2_getopt #define sm_bht_open bh2_open #include "sm/bht-int.h" sm_bht_entry_P bht2_locate_first(sm_bht_P _bht, const char *_key, uint _len); void *bht2_find_first(sm_bht_P _bht, const char *_key, uint _len); sm_bht_entry_P bht2_locate_next(sm_bht_P _bht, bht2_entry_P _prev); #ifndef BHT_COMPILE #undef sm_bht_entry_S #undef sm_bht_entry_T #undef sm_bht_entry_P #undef sm_bht_S #undef sm_bht_T #undef sm_bht_P #undef sm_bht_new #undef sm_bht_add #undef sm_bht_locate #undef sm_bht_find #undef sm_bht_rm #undef sm_bht_rm_all #undef sm_bht_destroy #undef sm_bht_walk #undef sm_bht_stats #undef sm_bhfree_F #undef sm_bhwalk_F #undef sm_bht_create #undef sm_bht_setopt #undef sm_bht_getopt #undef sm_bht_open #undef SM_TWO_KEYS #endif /* ! BHT_COMPILE */ #endif /* SM_BHT2_H */