openldap/servers/slapd/back-relay/back-relay.h

50 lines
1.3 KiB
C
Raw Normal View History

2004-03-17 09:03:21 +08:00
/* back-relay.h - relay backend header file */
2008-02-12 10:01:30 +08:00
/* $OpenLDAP$ */
2004-03-17 09:03:21 +08:00
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
2020-01-10 00:50:21 +08:00
* Copyright 2004-2020 The OpenLDAP Foundation.
2004-03-17 09:03:21 +08:00
* Portions Copyright 2004 Pierangelo Masarati.
* 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 Pierangelo Masarati for inclusion
* in OpenLDAP Software.
*/
#ifndef SLAPD_RELAY_H
#define SLAPD_RELAY_H
2004-11-11 08:39:19 +08:00
#include "proto-back-relay.h"
2004-03-17 09:03:21 +08:00
LDAP_BEGIN_DECL
typedef enum relay_operation_e {
relay_op_entry_get = op_last,
relay_op_entry_release,
relay_op_has_subordinates,
relay_op_last
} relay_operation_t;
2004-03-17 09:03:21 +08:00
typedef struct relay_back_info {
BackendDB *ri_bd;
struct berval ri_realsuffix;
int ri_massage;
2004-03-17 09:03:21 +08:00
} relay_back_info;
/* Pad relay_back_info if needed to create valid OpExtra key addresses */
#define RELAY_INFO_SIZE \
(sizeof(relay_back_info) > (size_t) relay_op_last ? \
sizeof(relay_back_info) : (size_t) relay_op_last )
2004-03-17 09:03:21 +08:00
LDAP_END_DECL
#endif /* SLAPD_RELAY_H */