--- include/slapi-plugin.h 2004/08/26 03:30:49 1.37 +++ include/slapi-plugin.h 2005/01/28 07:34:17 1.39 @@ -1,7 +1,7 @@ -/* $OpenLDAP: pkg/ldap/include/slapi-plugin.h,v 1.36 2004/08/25 13:18:56 lukeh Exp $ */ +/* $OpenLDAP: pkg/ldap/include/slapi-plugin.h,v 1.38 2005/01/01 19:49:42 kurt Exp $ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2005 The OpenLDAP Foundation. * Portions Copyright 1997,2002,2003 IBM Corporation. * All rights reserved. * @@ -317,6 +317,8 @@ void *slapi_get_object_extension(int obj void slapi_set_object_extension(int objecttype, void *object, int extensionhandle, void *extension); +int slapi_x_backend_get_flags( const Slapi_Backend *be, unsigned long *flags ); + /* parameters currently supported */ /* @@ -331,6 +333,20 @@ void slapi_set_object_extension(int obje #define SLAPI_ATTR_FLAG_NOUSERMOD 0x0100 /* + * Backend flags returned by slapi_x_backend_get_flags() + */ +#define SLAPI_BACKEND_FLAG_NOLASTMOD 0x0001U +#define SLAPI_BACKEND_FLAG_NO_SCHEMA_CHECK 0x0002U +#define SLAPI_BACKEND_FLAG_GLUE_INSTANCE 0x0010U /* a glue backend */ +#define SLAPI_BACKEND_FLAG_GLUE_SUBORDINATE 0x0020U /* child of a glue hierarchy */ +#define SLAPI_BACKEND_FLAG_GLUE_LINKED 0x0040U /* child is connected to parent */ +#define SLAPI_BACKEND_FLAG_OVERLAY 0x0080U /* this db struct is an overlay */ +#define SLAPI_BACKEND_FLAG_GLOBAL_OVERLAY 0x0100U /* this db struct is a global overlay */ +#define SLAPI_BACKEND_FLAG_SHADOW 0x8000U /* a shadow */ +#define SLAPI_BACKEND_FLAG_SYNC_SHADOW 0x1000U /* a sync shadow */ +#define SLAPI_BACKEND_FLAG_SLURP_SHADOW 0x2000U /* a slurp shadow */ + +/* * ACL levels */ #define SLAPI_ACL_COMPARE 0x01