Back to index

openldap  2.4.31
back-relay.h
Go to the documentation of this file.
00001 /* back-relay.h - relay backend header file */
00002 /* $OpenLDAP$ */
00003 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00004  *
00005  * Copyright 2004-2012 The OpenLDAP Foundation.
00006  * Portions Copyright 2004 Pierangelo Masarati.
00007  * All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted only as authorized by the OpenLDAP
00011  * Public License.
00012  *
00013  * A copy of this license is available in the file LICENSE in the
00014  * top-level directory of the distribution or, alternatively, at
00015  * <http://www.OpenLDAP.org/license.html>.
00016  */
00017 /* ACKNOWLEDGEMENTS:
00018  * This work was initially developed by Pierangelo Masarati for inclusion
00019  * in OpenLDAP Software.
00020  */
00021 
00022 #ifndef SLAPD_RELAY_H
00023 #define SLAPD_RELAY_H
00024 
00025 #include "proto-back-relay.h"
00026 
00027 LDAP_BEGIN_DECL
00028 
00029 typedef enum relay_operation_e {
00030        relay_op_entry_get = op_last,
00031        relay_op_entry_release,
00032        relay_op_has_subordinates,
00033        relay_op_last
00034 } relay_operation_t;
00035 
00036 typedef struct relay_back_info {
00037        BackendDB     *ri_bd;
00038        struct berval ri_realsuffix;
00039        int           ri_massage;
00040 } relay_back_info;
00041 
00042 /* Pad relay_back_info if needed to create valid OpExtra key addresses */
00043 #define       RELAY_INFO_SIZE \
00044        (sizeof(relay_back_info) > (size_t) relay_op_last ? \
00045         sizeof(relay_back_info) : (size_t) relay_op_last   )
00046 
00047 LDAP_END_DECL
00048 
00049 #endif /* SLAPD_RELAY_H */