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 2003 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#ifndef _NFS_PROVIDER_NAMES_H
28#define	_NFS_PROVIDER_NAMES_H
29
30#pragma ident	"%Z%%M%	%I%	%E% SMI"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/*
37 * NFS provider classes.
38 */
39#define	SOLARIS_HOSTEDSHARE "Solaris_HostedShare"
40#define	SOLARIS_NFS "Solaris_NFS"
41#define	SOLARIS_NFSMOUNT "Solaris_NFSMount"
42#define	SOLARIS_NFSSHARE "Solaris_NFSShare"
43#define	SOLARIS_NFSSHAREENT "Solaris_NFSShareEntry"
44#define	SOLARIS_NFSSHAREDEFSECMODES "Solaris_NFSShareDefSecurityModes"
45#define	SOLARIS_NFSSHARESEC "Solaris_NFSShareSecurity"
46#define	SOLARIS_NFSSHARESECMODES "Solaris_NFSShareSecurityModes"
47#define	SOLARIS_NFSSHARESECURITY "Solaris_NFSShareSecurity"
48#define	SOLARIS_PERSISTSHARE "Solaris_PersistentShare"
49#define	SOLARIS_SHAREDFS "Solaris_SharedFileSystem"
50#define	SOLARIS_SHARESERV "Solaris_ShareService"
51#define	SOLARIS_SYSPERSISTSHARE "Solaris_PersistentShareForSystem"
52
53/*
54 * Other referenced Solaris classes
55 */
56#define	SOLARIS_CS "Solaris_ComputerSystem"
57#define	SOLARIS_DIR "Solaris_Directory"
58
59/*
60 * These are nfs providers specific functions.
61 */
62#define		ADD_PROP_TO_INST	"add_property_to_instance"
63#define		ADD_PROP_TO_LIST	"add_property_to_list"
64#define		COMMAND_GEN		"cmdgen_generate_command"
65#define		CREATE_HOSTEDSHARE_ASSOC	\
66	"create_hostedShare_associations"
67#define		CREATE_OUT_PARAMS	"create_outParams_list"
68#define		CREATE_PSFORSYS_ASSOC	"create_persistShareForSys_associations"
69#define		CREATE_SHAREDFS_ASSOC	"create_sharedFS_associations"
70#define		DELETE_DUP_PATHS	"del_all_with_duplicate_path"
71#define		DELETE_VFSTAB_ENT	"delete_vfstab_entry"
72#define		ENUM_MOUNTS		"enumerate_mounts"
73#define		EXEC_CMD		"exec_command"
74#define		GET_ANT			"get_Antecedent"
75#define		GET_ASSOC_DIR		"get_associated_directory"
76#define		GET_ASSOC_INST		"get_associated_instances"
77#define		GET_ASSOC_NFSMNTS	"get_associated_nfs_mntlist"
78#define		GET_ASSOC_SEC_INSTLIST	"get_associated_nfsShareSec_instList"
79#define		GET_ASSOC_SEC_OPLIST	"get_associated_nfsShareSec_OPList"
80#define		GET_ASSOC_SEC_PROPLIST	"get_associated_nfsShareSec_propList"
81#define		GET_ASSOC_SP_INSTLIST	"get_associated_sharePersist_instList"
82#define		GET_ASSOC_SP_OPLIST	"get_associated_sharePersist_OPList"
83#define		GET_ASSOC_SP_PROPLIST	"get_associated_sharePersist_propList"
84#define		GET_DEF_SECMODE		"get_default_secmode"
85#define		GET_DEP			"get_Dependent"
86#define		GET_NETCFG_LIST		"get_netconfig_list"
87#define		GET_NFSSEC_LIST		"get_nfssec_list"
88#define		GET_NFSSHARESEC_INST	"get_Solaris_NFSShareSecurity_Inst"
89#define		GET_NFSSHARE_0P		"get_Solaris_NFSShare_OP"
90#define		GET_PROP_FROM_OPTS	"get_property_from_opt_string"
91#define		GET_SHAREPERSIST_INST	"get_Solaris_PersistentShare_Inst"
92#define		MOUNTALL_INVOKE_METH	"mountall"
93#define		POPULATE_PROPLIST	"populate_property_list"
94#define		SHAREALL_INVOKE_METH	"shareall"
95#define		SHARE_EXISTS		"does_share_exist"
96#define		SHOW_EXPORTS		"show_exports"
97#define		UNMOUNTALL_INVOKE_METH	"unmountall"
98#define		UNSHAREALL_INVOKE_METH	"unshareall"
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* _NFS_PROVIDER_NAMES_H */
104