X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fconfig.h;h=d79ae7406c1b41bd43191fd9ff4afc9a45c9f960;hb=ef7f5f5e32e6e0f129aee7fa1626017a7dadcb48;hp=4c929dea6d500b55e7c1616cc20bc9da44d1a634;hpb=bf69b8e0650d4b7059a9a58f0e4c12422ac8a2b4;p=openldap diff --git a/servers/slapd/config.h b/servers/slapd/config.h index 4c929dea6d..d79ae7406c 100644 --- a/servers/slapd/config.h +++ b/servers/slapd/config.h @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2009 The OpenLDAP Foundation. + * Copyright 1998-2011 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -100,12 +100,21 @@ typedef int (ConfigLDAPadd)( typedef int (ConfigCfAdd)( Operation *op, SlapReply *rs, Entry *parent, struct config_args_s *ca ); +#ifdef SLAP_CONFIG_DELETE +/* Called when deleting a Cft_Misc Child object from cn=config */ +typedef int (ConfigLDAPdel)( + CfEntryInfo *ce, Operation *op ); +#endif + typedef struct ConfigOCs { const char *co_def; ConfigType co_type; ConfigTable *co_table; ConfigLDAPadd *co_ldadd; ConfigCfAdd *co_cfadd; +#ifdef SLAP_CONFIG_DELETE + ConfigLDAPdel *co_lddel; +#endif ObjectClass *co_oc; struct berval *co_name; } ConfigOCs; @@ -197,7 +206,7 @@ Entry * config_build_entry( Operation *op, SlapReply *rs, CfEntryInfo *parent, ConfigArgs *c, struct berval *rdn, ConfigOCs *main, ConfigOCs *extra ); Listener *config_check_my_url(const char *url, LDAPURLDesc *lud); -int config_shadow( ConfigArgs *c, int flag ); +int config_shadow( ConfigArgs *c, slap_mask_t flag ); #define config_slurp_shadow(c) config_shadow((c), SLAP_DBFLAG_SLURP_SHADOW) #define config_sync_shadow(c) config_shadow((c), SLAP_DBFLAG_SYNC_SHADOW)