xref: /freebsd/crypto/heimdal/lib/roken/search.hin (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1/*-
2 * Written by J.T. Conklin <jtc@netbsd.org>
3 * Public domain.
4 *
5 * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
6 */
7
8#ifndef _rk_SEARCH_H_
9#define _rk_SEARCH_H_ 1
10
11#ifndef ROKEN_LIB_FUNCTION
12#ifdef _WIN32
13#define ROKEN_LIB_FUNCTION
14#define ROKEN_LIB_CALL     __cdecl
15#else
16#define ROKEN_LIB_FUNCTION
17#define ROKEN_LIB_CALL
18#endif
19#endif
20
21#ifndef _WIN32
22#include <sys/cdefs.h>
23#endif
24#include <sys/types.h>
25
26typedef	enum {
27	preorder,
28	postorder,
29	endorder,
30	leaf
31} VISIT;
32
33ROKEN_CPP_START
34
35ROKEN_LIB_FUNCTION void	* ROKEN_LIB_CALL rk_tdelete(const void *, void **,
36		 int (*)(const void *, const void *));
37ROKEN_LIB_FUNCTION void	* ROKEN_LIB_CALL rk_tfind(const void *, void * const *,
38	       int (*)(const void *, const void *));
39ROKEN_LIB_FUNCTION void	* ROKEN_LIB_CALL rk_tsearch(const void *, void **, int (*)(const void *, const void *));
40ROKEN_LIB_FUNCTION void	ROKEN_LIB_CALL rk_twalk(const void *, void (*)(const void *, VISIT, int));
41
42ROKEN_CPP_END
43
44#endif /* !_rk_SEARCH_H_ */
45