1 /* back-relay.h - relay backend header file */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2004-2009 The OpenLDAP Foundation.
6 * Portions Copyright 2004 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 the 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 "proto-back-relay.h"
27 /* String rewrite library */
31 typedef enum relay_operation_e {
32 relay_op_entry_get = op_last,
33 relay_op_entry_release,
34 relay_op_has_subordinates,
38 typedef struct relay_back_info {
40 struct berval ri_realsuffix;
44 /* Pad relay_back_info if needed to create valid OpExtra key addresses */
45 #define RELAY_INFO_SIZE \
46 (sizeof(relay_back_info) > (size_t) relay_op_last ? \
47 sizeof(relay_back_info) : (size_t) relay_op_last )
51 #endif /* SLAPD_RELAY_H */