xref: /titanic_41/usr/src/lib/libnisdb/ldap_print.h (revision 6185db853e024a486ff8837e6784dd290d866112)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 2001 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 #ifndef	_LDAP_PRINT_H
30 #define	_LDAP_PRINT_H
31 
32 #include <lber.h>
33 #include <ldap.h>
34 
35 #include <rpcsvc/nis.h>
36 
37 #include "ldap_parse.h"
38 #include "ldap_val.h"
39 #include "ldap_ruleval.h"
40 #include "ldap_map.h"
41 
42 #ifdef	__cplusplus
43 extern "C" {
44 #endif
45 
46 /* Exported functions */
47 
48 void		printMappingFormat(__nis_mapping_format_t *f);
49 void		printMappingFormatArray(__nis_mapping_format_t *a);
50 void		printIndex(__nis_index_t *i);
51 void		printObjSpec(__nis_obj_spec_t *o);
52 void		printMappingItem(__nis_mapping_item_t *i,
53 			__nis_mapping_item_type_t native);
54 void		printMappingSubElement(__nis_mapping_sub_element_t *e,
55 			__nis_mapping_item_type_t native);
56 void		printMappingElement(__nis_mapping_element_t *e,
57 			__nis_mapping_item_type_t native);
58 void		printMappingRLHS(__nis_mapping_rlhs_t *m,
59 			__nis_mapping_item_type_t native);
60 void		printMappingRule(__nis_mapping_rule_t *r,
61 			__nis_mapping_item_type_t nativeLhs,
62 			__nis_mapping_item_type_t nativeRhs);
63 void		printObjName(__nis_index_t *index, char *name);
64 void		printobjectDN(__nis_object_dn_t *o);
65 void		printTableMapping(__nis_table_mapping_t *t);
66 void		printRuleValue(__nis_rule_value_t *rv);
67 void		printLdapMod(LDAPMod **mods, __nis_buffer_t *b);
68 void		printObjAttr(__nis_obj_attr_t *attr);
69 
70 #ifdef	__cplusplus
71 }
72 #endif	/* __cplusplus */
73 
74 #endif	/* _LDAP_PRINT_H */
75