]> git.sur5r.net Git - openldap/blob - servers/slapd/back-sql/entry-id.h
Converted ch_malloc, ch_calloc and ch_realloc calls to SLAP_MALLOC,
[openldap] / servers / slapd / back-sql / entry-id.h
1 #ifndef __BACKSQL_ENTRYID_H__
2 #define __BACKSQL_ENTRYID_H__
3
4 /*
5  *       Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
6  *
7  *       Redistribution and use in source and binary forms are permitted only
8  *       as authorized by the OpenLDAP Public License.  A copy of this
9  *       license is available at http://www.OpenLDAP.org/license.html or
10  *       in file LICENSE in the top-level directory of the distribution.
11  */
12
13
14 typedef struct backsql_entryID {
15         unsigned long           id;
16         unsigned long           keyval;
17         unsigned long           oc_id;
18         struct berval           dn;
19         struct backsql_entryID  *next;
20 } backsql_entryID;
21
22 int backsql_dn2id( backsql_info *bi, backsql_entryID *id,
23                 SQLHDBC dbh, struct berval *dn );
24
25 int backsql_count_children( backsql_info *bi, SQLHDBC dbh,
26                 struct berval *dn, unsigned long *nchildren );
27 int backsql_has_children( backsql_info *bi, SQLHDBC dbh, struct berval *dn );
28
29
30 /* returns next */
31 backsql_entryID *backsql_free_entryID( backsql_entryID *id, int freeit );
32
33 #endif /* __BACKSQL_ENTRYID_H__ */
34