1 /* entry.c - monitor backend entry handling routines */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2001-2004 The OpenLDAP Foundation.
6 * Portions Copyright 2001-2003 Pierangelo Masarati.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
13 * A copy of this license is available in file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
18 * This work was initially developed by Pierangelo Masarati for inclusion
19 * in OpenLDAP Software.
25 #include "back-monitor.h"
33 struct monitorinfo *mi = (struct monitorinfo *)op->o_bd->be_private;
34 struct monitorentrypriv *mp;
38 assert( e->e_private != NULL );
40 mp = ( struct monitorentrypriv * )e->e_private;
43 if ( mp->mp_info && mp->mp_info->mss_update ) {
44 return ( *mp->mp_info->mss_update )( op, e );
58 struct monitorinfo *mi = (struct monitorinfo *)op->o_bd->be_private;
59 struct monitorentrypriv *mp;
62 assert( e_parent != NULL );
63 assert( e_parent->e_private != NULL );
66 mp = ( struct monitorentrypriv * )e_parent->e_private;
68 if ( mp->mp_info && mp->mp_info->mss_create ) {
69 return ( *mp->mp_info->mss_create )( op, ndn, e_parent, ep );
81 struct monitorinfo *mi = (struct monitorinfo *)op->o_bd->be_private;
82 struct monitorentrypriv *mp;
86 assert( e->e_private != NULL );
88 mp = ( struct monitorentrypriv * )e->e_private;
90 if ( mp->mp_info && mp->mp_info->mss_modify ) {
91 return ( *mp->mp_info->mss_modify )( op, e );
98 monitor_entry_test_flags(
99 struct monitorentrypriv *mp,
103 assert( mp != NULL );
105 return( ( mp->mp_flags & cond ) || ( mp->mp_info->mss_flags & cond ) );