]> git.sur5r.net Git - openldap/blob - servers/slapd/back-sql/entry-id.h
now I remember why I introduced the 'has_ldapinfo_dn_ru' flag
[openldap] / servers / slapd / back-sql / entry-id.h
1 /* $OpenLDAP$ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3  *
4  * Copyright 1999-2004 The OpenLDAP Foundation.
5  * Portions Copyright 1999 Dmitry Kovalev.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted only as authorized by the OpenLDAP
10  * Public License.
11  *
12  * A copy of this license is available in the file LICENSE in the
13  * top-level directory of the distribution or, alternatively, at
14  * <http://www.OpenLDAP.org/license.html>.
15  */
16 /* ACKNOWLEDGEMENTS:
17  * This work was initially developed by Dmitry Kovalev for inclusion
18  * by OpenLDAP Software.
19  */
20
21 #ifndef __BACKSQL_ENTRYID_H__
22 #define __BACKSQL_ENTRYID_H__
23
24 typedef struct backsql_entryID {
25         unsigned long           id;
26         unsigned long           keyval;
27         unsigned long           oc_id;
28         struct berval           dn;
29         struct backsql_entryID  *next;
30 } backsql_entryID;
31
32 int backsql_dn2id( backsql_info *bi, backsql_entryID *id,
33                 SQLHDBC dbh, struct berval *dn );
34
35 int backsql_count_children( backsql_info *bi, SQLHDBC dbh,
36                 struct berval *dn, unsigned long *nchildren );
37 int backsql_has_children( backsql_info *bi, SQLHDBC dbh, struct berval *dn );
38
39
40 /* returns next */
41 backsql_entryID *backsql_free_entryID( backsql_entryID *id, int freeit );
42
43 #endif /* __BACKSQL_ENTRYID_H__ */
44