1/*
2 * Copyright (c) 2008 Apple Inc.  All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 *
23 * Does this need to be released under the OpenLDAP License instead of, or in
24 * addition to the APSL?
25 *
26 */
27
28/*
29 * Header file for red black tree of the ldap response messages.
30 */
31
32
33#ifndef _RB_RESPONSE_H_
34#define _RB_RESPONSE_H_
35
36#ifdef LDAP_RESPONSE_RB_TREE
37
38#include "ldap.h"
39#include "ldap-int.h"
40#include "lber_types.h"
41
42void ldap_resp_rbt_create( LDAP *ld );
43void ldap_resp_rbt_free( LDAP *ld );
44void ldap_resp_rbt_insert_msg( LDAP *ld, LDAPMessage *lm );
45void ldap_resp_rbt_delete_msg( LDAP *ld, LDAPMessage *lm );
46void ldap_resp_rbt_unlink_msg( LDAP *ld, LDAPMessage *lm);
47void ldap_resp_rbt_unlink_partial_msg( LDAP *ld, LDAPMessage *lm );
48LDAPMessage *ldap_resp_rbt_find_msg( LDAP* ld, ber_int_t msgid );
49LDAPMessage *ldap_resp_rbt_get_first_msg( LDAP *ld );
50LDAPMessage *ldap_resp_rbt_get_next_msg( LDAP *ld, LDAPMessage *lm );
51void ldap_resp_rbt_dump( LDAP *ld );
52
53#endif /* LDAP_RESPONSE_RB_TREE */
54
55#endif /* _RB_RESPONSE_H_ */
56