648e71e52f
Added slapd support for OpenSSL 1.1.0 series (ITS#8353, ITS#8533, ITS#8634) Fixed libldap to fail ldap_result if the handle is already bad (ITS#8585) Fixed libldap to expose error if user specified CA doesn't exist (ITS#8529) Fixed libldap handling of Diffie-Hellman parameters (ITS#7506) Fixed libldap GnuTLS use after free (ITS#8385) Fixed libldap SASL initialization (ITS#8648) Fixed slapd bconfig rDN escape handling (ITS#8574) Fixed slapd segfault with invalid hostname (ITS#8631) Fixed slapd sasl SEGV rebind in same session (ITS#8568) Fixed slapd syncrepl filter handling (ITS#8413) Fixed slapd syncrepl infinite looping mods with delta-sync MMR (ITS#8432) Fixed slapd callback struct so older modules without writewait should function. Custom modules may need to be updated for sc_writewait callback (ITS#8435) Fixed slapd-ldap/meta broken LDAP_TAILQ macro (ITS#8576) Fixed slapd-mdb so it passes ITS6794 regression test (ITS#6794) Fixed slapd-mdb double free with size zero paged result (ITS#8655) Fixed slapd-meta uninitialized diagnostic message (ITS#8442) Fixed slapo-accesslog to honor pauses during purge for cn=config update (ITS#8423) Fixed slapo-accesslog with multiple modifications to the same attribute (ITS#6545) Fixed slapo-relay to correctly initialize sc_writewait (ITS#8428) Fixed slapo-sssvlv double free (ITS#8592) Fixed slapo-unique with empty modifications (ITS#8266) Build Environment Added test065 for proxyauthz (ITS#8571) Fix test008 to be portable (ITS#8414) Fix test064 to wait for slapd to start (ITS#8644) Fix its4336 regression test (ITS#8534) Fix its4337 regression test (ITS#8535) Fix regression tests to execute on all backends (ITS#8539) Contrib Added slapo-autogroup(5) man page (ITS#8569) Added passwd missing conversion scripts for apr1 (ITS#6826) Fixed contrib modules where the writewait callback was not correctly initialized (ITS#8435) Fixed smbk5pwd to build with newer OpenSSL releases (ITS#8525) Documentation admin24 fixed tls_cipher_suite bindconf option (ITS#8099) admin24 fixed typo cn=config to be slapd.d (ITS#8449) admin24 fixed slapo-syncprov information to be curent (ITS#8253) admin24 fixed typo in access control docs (ITS#7341, ITS#8391) admin24 fixed minor typo in tuning guide (ITS#8499) admin24 fixed information about the limits option (ITS#7700) admin24 fixed missing options for syncrepl configuration (ITS#7700) admin24 fixed accesslog documentation to note it should not be replicated (ITS#8344) Fixed ldap.conf(5) missing information on SASL_NOCANON option (ITS#7177) Fixed ldapsearch(1) information on the V[V] flag behavior (ITS#7177, ITS#6339) Fixed slapd-config(5), slapd.conf(5) clarification on interval keyword for refreshAndPersist (ITS#8538) Fixed slapd-config(5), slapd.conf(5) clarify serverID requirements (ITS#8635) Fixed slapd-config(5), slapd.conf(5) clarification on loglevel settings (ITS#8123) Fixed slapo-ppolicy(5) to clearly note rootdn requirement (ITS#8565) Fixed slapo-memberof(5) to note it is not safe to use with replication (ITS#8613) Fixed slapo-syncprov(5) documentation to be current (ITS#8253) Fixed slapadd(8) manpage to note slapd-mdb (ITS#8215) Fixed various minor grammar issues in the man pages (ITS#8544) Fixed various typos (ITS#8587)
76 lines
2.1 KiB
C
76 lines
2.1 KiB
C
/* $NetBSD: lutil_meter.h,v 1.1.1.4 2018/02/06 01:53:05 christos Exp $ */
|
|
|
|
/* lutil_meter.h - progress meters */
|
|
/* $OpenLDAP$ */
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
*
|
|
* Copyright (c) 2009 by Emily Backes, Symas Corp.
|
|
* All rights reserved.
|
|
*
|
|
* 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 Emily Backes for inclusion
|
|
* in OpenLDAP software.
|
|
*/
|
|
|
|
#ifndef _LUTIL_METER_H
|
|
#define _LUTIL_METER_H
|
|
|
|
#include <sys/cdefs.h>
|
|
__RCSID("$NetBSD: lutil_meter.h,v 1.1.1.4 2018/02/06 01:53:05 christos Exp $");
|
|
|
|
#include "portable.h"
|
|
|
|
#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
|
|
#include <ac/stdlib.h>
|
|
#include <ac/time.h>
|
|
|
|
typedef struct {
|
|
int (*display_open) (void **datap);
|
|
int (*display_update) (void **datap, double frac, time_t remaining_time, time_t elapsed, double byte_rate);
|
|
int (*display_close) (void **datap);
|
|
} lutil_meter_display_t;
|
|
|
|
typedef struct {
|
|
int (*estimator_open) (void **datap);
|
|
int (*estimator_update) (void **datap, double start, double frac, time_t *remaining_time);
|
|
int (*estimator_close) (void **datap);
|
|
} lutil_meter_estimator_t;
|
|
|
|
typedef struct {
|
|
const lutil_meter_display_t *display;
|
|
void * display_data;
|
|
const lutil_meter_estimator_t *estimator;
|
|
void * estimator_data;
|
|
double start_time;
|
|
double last_update;
|
|
size_t goal_value;
|
|
size_t last_position;
|
|
} lutil_meter_t;
|
|
|
|
extern const lutil_meter_display_t lutil_meter_text_display;
|
|
extern const lutil_meter_estimator_t lutil_meter_linear_estimator;
|
|
|
|
extern int lutil_meter_open (
|
|
lutil_meter_t *lutil_meter,
|
|
const lutil_meter_display_t *display,
|
|
const lutil_meter_estimator_t *estimator,
|
|
size_t goal_value);
|
|
extern int lutil_meter_update (
|
|
lutil_meter_t *lutil_meter,
|
|
size_t position,
|
|
int force);
|
|
extern int lutil_meter_close (lutil_meter_t *lutil_meter);
|
|
|
|
#endif /* _LUTIL_METER_H */
|