1 /* operational.c - monitor backend operational attributes function */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2003 The OpenLDAP Foundation.
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 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 Pierangelo Masarati for inclusion
18 * in OpenLDAP Software.
21 #ifndef _BACK_MONITOR_H_
22 #define _BACK_MONITOR_H_
25 #include <ldap_pvt_thread.h>
32 * The cache maps DNs to Entries.
38 #include <ac/string.h>
39 #include <ac/socket.h>
42 #include "back-monitor.h"
43 #include "proto-back-monitor.h"
46 * sets the supported operational attributes (if required)
50 monitor_back_operational(
58 assert( rs->sr_entry );
60 if ( opattrs || ad_inlist( slap_schema.si_ad_hasSubordinates,
63 struct monitorentrypriv *mp;
65 mp = ( struct monitorentrypriv * )rs->sr_entry->e_private;
69 hs = MONITOR_HAS_CHILDREN( mp );
70 *aa = slap_operational_hasSubordinate( hs );