1226031Sstas/*- 2226031Sstas * Written by J.T. Conklin <jtc@netbsd.org> 3226031Sstas * Public domain. 4226031Sstas * 5226031Sstas * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ 6226031Sstas */ 7226031Sstas 8226031Sstas#ifndef _rk_SEARCH_H_ 9226031Sstas#define _rk_SEARCH_H_ 1 10226031Sstas 11226031Sstas#ifndef ROKEN_LIB_FUNCTION 12226031Sstas#ifdef _WIN32 13226031Sstas#define ROKEN_LIB_FUNCTION 14226031Sstas#define ROKEN_LIB_CALL __cdecl 15226031Sstas#else 16226031Sstas#define ROKEN_LIB_FUNCTION 17226031Sstas#define ROKEN_LIB_CALL 18226031Sstas#endif 19226031Sstas#endif 20226031Sstas 21226031Sstas#ifndef _WIN32 22226031Sstas#include <sys/cdefs.h> 23226031Sstas#endif 24226031Sstas#include <sys/types.h> 25226031Sstas 26226031Sstastypedef enum { 27226031Sstas preorder, 28226031Sstas postorder, 29226031Sstas endorder, 30226031Sstas leaf 31226031Sstas} VISIT; 32226031Sstas 33226031SstasROKEN_CPP_START 34226031Sstas 35226128SstasROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tdelete(const void *, void **, 36226031Sstas int (*)(const void *, const void *)); 37226031SstasROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tfind(const void *, void * const *, 38226031Sstas int (*)(const void *, const void *)); 39226031SstasROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tsearch(const void *, void **, int (*)(const void *, const void *)); 40226031SstasROKEN_LIB_FUNCTION void ROKEN_LIB_CALL rk_twalk(const void *, void (*)(const void *, VISIT, int)); 41226031Sstas 42226031SstasROKEN_CPP_END 43226031Sstas 44226031Sstas#endif /* !_rk_SEARCH_H_ */ 45