2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1999-2004 The OpenLDAP Foundation.
5 * Portions Copyright 1999 Dmitry Kovalev.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
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>.
17 * This work was initially developed by Dmitry Kovalev for inclusion
18 * by OpenLDAP Software.
21 #ifndef __BACKSQL_ENTRYID_H__
22 #define __BACKSQL_ENTRYID_H__
24 typedef struct backsql_entryID {
29 struct backsql_entryID *next;
32 int backsql_dn2id( backsql_info *bi, backsql_entryID *id,
33 SQLHDBC dbh, struct berval *dn );
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 );
41 backsql_entryID *backsql_free_entryID( backsql_entryID *id, int freeit );
43 #endif /* __BACKSQL_ENTRYID_H__ */