xref: /titanic_54/usr/src/cmd/idmap/idmap/namemaps.h (revision 6a634c9dca3093f3922e4b7ab826d7bdf17bf78e)
1c5866007SKeyur Desai /*
2c5866007SKeyur Desai  * CDDL HEADER START
3c5866007SKeyur Desai  *
4c5866007SKeyur Desai  * The contents of this file are subject to the terms of the
5c5866007SKeyur Desai  * Common Development and Distribution License (the "License").
6c5866007SKeyur Desai  * You may not use this file except in compliance with the License.
7c5866007SKeyur Desai  *
8c5866007SKeyur Desai  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c5866007SKeyur Desai  * or http://www.opensolaris.org/os/licensing.
10c5866007SKeyur Desai  * See the License for the specific language governing permissions
11c5866007SKeyur Desai  * and limitations under the License.
12c5866007SKeyur Desai  *
13c5866007SKeyur Desai  * When distributing Covered Code, include this CDDL HEADER in each
14c5866007SKeyur Desai  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c5866007SKeyur Desai  * If applicable, add the following below this CDDL HEADER, with the
16c5866007SKeyur Desai  * fields enclosed by brackets "[]" replaced with your own identifying
17c5866007SKeyur Desai  * information: Portions Copyright [yyyy] [name of copyright owner]
18c5866007SKeyur Desai  *
19c5866007SKeyur Desai  * CDDL HEADER END
20c5866007SKeyur Desai  */
21c5866007SKeyur Desai /*
22c5866007SKeyur Desai  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23c5866007SKeyur Desai  */
24c5866007SKeyur Desai 
25c5866007SKeyur Desai /*
26c5866007SKeyur Desai  * Additional API for Identity Mapping Service
27c5866007SKeyur Desai  */
28c5866007SKeyur Desai 
29c5866007SKeyur Desai #ifndef NAMEMAPS_H
30c5866007SKeyur Desai #define	NAMEMAPS_H
31c5866007SKeyur Desai 
32c5866007SKeyur Desai #ifdef __cplusplus
33c5866007SKeyur Desai extern "C" {
34c5866007SKeyur Desai #endif
35c5866007SKeyur Desai 
36c5866007SKeyur Desai /*
37c5866007SKeyur Desai  * Directory based name map API
38c5866007SKeyur Desai  */
39c5866007SKeyur Desai 
40c5866007SKeyur Desai typedef struct idmap_nm_handle idmap_nm_handle_t;
41c5866007SKeyur Desai 
42c5866007SKeyur Desai /* Set namemap */
43c5866007SKeyur Desai extern idmap_stat idmap_set_namemap(idmap_nm_handle_t *, char *, char *,
44c5866007SKeyur Desai     int, int, int);
45c5866007SKeyur Desai 
46c5866007SKeyur Desai /* Unset namemap */
47c5866007SKeyur Desai extern idmap_stat idmap_unset_namemap(idmap_nm_handle_t *, char *, char *,
48c5866007SKeyur Desai     int, int, int);
49c5866007SKeyur Desai 
50c5866007SKeyur Desai extern idmap_stat idmap_get_namemap(idmap_nm_handle_t *p, int *, char **,
51c5866007SKeyur Desai     char **, int *, char **,  char **);
52c5866007SKeyur Desai 
53c5866007SKeyur Desai extern void idmap_fini_namemaps(idmap_nm_handle_t *);
54c5866007SKeyur Desai 
55*1fdeec65Sjoyce mcintosh extern idmap_stat idmap_init_namemaps(idmap_nm_handle_t **,
56c5866007SKeyur Desai     char *, char *, char *, char *, int);
57c5866007SKeyur Desai 
58c5866007SKeyur Desai #ifdef __cplusplus
59c5866007SKeyur Desai }
60c5866007SKeyur Desai #endif
61c5866007SKeyur Desai 
62c5866007SKeyur Desai #endif /* NAMEMAPS_H */
63