/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
/*
* basic API declarations for share management
*/
#ifndef _LIBSHARE_NFS_H
#define _LIBSHARE_NFS_H
#ifdef __cplusplus
extern "C" {
#endif
/* property names used by NFS */
/*
* defined options types. These should be in a file rather than
* compiled in. Until there is a plugin mechanism to add new types,
* this is sufficient.
*/
#define OPT_TYPE_ANY 0
struct option_defs {
char *tag;
int index;
int type;
};
/*
* service bit mask values
*/
/*
*/
/*
* place holder for future service -- will move to daemon_utils.h when
* fully implemented.
*/
/* other values */
/* max size of 64-bit integer in digits plus a bit extra */
/* external variable */
extern boolean_t nfsl_errs_to_syslog;
/* imported functions */
extern int exportfs(char *, struct exportdata *);
extern int nfs_getseconfig_default(seconfig_t *);
extern int nfs_getseconfig_byname(char *, seconfig_t *);
extern int nfsl_getconfig_list(nfsl_config_t **);
extern void nfsl_freeconfig_list(nfsl_config_t **);
#ifdef __cplusplus
}
#endif
#endif /* _LIBSHARE_NFS_H */