2003-12-07 14:19:18 -05:00
|
|
|
/* $OpenLDAP$ */
|
|
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
|
*
|
2004-01-01 14:15:16 -05:00
|
|
|
* Copyright 1999-2004 The OpenLDAP Foundation.
|
2003-12-07 14:19:18 -05:00
|
|
|
* Portions Copyright 1999 Dmitry Kovalev.
|
|
|
|
|
* All rights reserved.
|
2000-05-26 12:03:32 -04:00
|
|
|
*
|
2003-12-07 14:19:18 -05:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
|
* Public License.
|
|
|
|
|
*
|
|
|
|
|
* A copy of this license is available in the file LICENSE in the
|
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
|
|
|
|
*/
|
|
|
|
|
/* ACKNOWLEDGEMENTS:
|
|
|
|
|
* This work was initially developed by Dmitry Kovalev for inclusion
|
|
|
|
|
* by OpenLDAP Software.
|
2000-05-26 12:03:32 -04:00
|
|
|
*/
|
|
|
|
|
|
2003-12-07 14:19:18 -05:00
|
|
|
#ifndef __BACKSQL_ENTRYID_H__
|
|
|
|
|
#define __BACKSQL_ENTRYID_H__
|
2000-05-26 12:03:32 -04:00
|
|
|
|
2002-08-13 13:12:27 -04:00
|
|
|
typedef struct backsql_entryID {
|
|
|
|
|
unsigned long id;
|
|
|
|
|
unsigned long keyval;
|
|
|
|
|
unsigned long oc_id;
|
|
|
|
|
struct berval dn;
|
|
|
|
|
struct backsql_entryID *next;
|
|
|
|
|
} backsql_entryID;
|
2000-03-16 14:08:22 -05:00
|
|
|
|
2002-08-13 13:12:27 -04:00
|
|
|
int backsql_dn2id( backsql_info *bi, backsql_entryID *id,
|
|
|
|
|
SQLHDBC dbh, struct berval *dn );
|
2002-09-02 15:39:31 -04:00
|
|
|
|
|
|
|
|
int backsql_count_children( backsql_info *bi, SQLHDBC dbh,
|
|
|
|
|
struct berval *dn, unsigned long *nchildren );
|
2002-08-23 04:54:08 -04:00
|
|
|
int backsql_has_children( backsql_info *bi, SQLHDBC dbh, struct berval *dn );
|
|
|
|
|
|
2002-09-02 15:39:31 -04:00
|
|
|
|
2002-08-13 13:12:27 -04:00
|
|
|
/* returns next */
|
|
|
|
|
backsql_entryID *backsql_free_entryID( backsql_entryID *id, int freeit );
|
2001-09-07 09:04:11 -04:00
|
|
|
|
2002-08-13 13:12:27 -04:00
|
|
|
#endif /* __BACKSQL_ENTRYID_H__ */
|
2000-03-16 14:08:22 -05:00
|
|
|
|