libshare_smbfs.h revision 4bff34e37def8a90f9194d81bc345c52ba20086a
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * CDDL HEADER START
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * The contents of this file are subject to the terms of the
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * Common Development and Distribution License (the "License").
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * You may not use this file except in compliance with the License.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * or http://www.opensolaris.org/os/licensing.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * See the License for the specific language governing permissions
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * and limitations under the License.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * When distributing Covered Code, include this CDDL HEADER in each
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * If applicable, add the following below this CDDL HEADER, with the
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * fields enclosed by brackets "[]" replaced with your own identifying
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * information: Portions Copyright [yyyy] [name of copyright owner]
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * CDDL HEADER END
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * Use is subject to license terms.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#pragma ident "%Z%%M% %I% %E% SMI"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * basic API declarations for share management
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore char *name; /* display name -- remove protocol identifier */
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore int32_t maxval; /* In case of length of string this should be max */
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore int (*validator)(int, char *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern struct smbclnt_proto_option_defs smbclnt_proto_options[];
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore * Flags values
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore/* Max value length of all SMB properties */
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#define SMBC_FMRI_PREFIX "network/smb/client"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#define SMBC_DEFAULT_INSTANCE_FMRI "svc:/network/smb/client:default"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#define SMBC_SMF_NO_MEMORY 1 /* no memory for data structures */
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#define SMBC_SMF_SYSTEM_ERR 2 /* system error, use errno */
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#define SMBC_SMF_NO_PERMISSION 3 /* no permission for operation */
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoretypedef struct smb_scfhandle {
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern void smb_smf_scf_fini(smb_scfhandle_t *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern smb_scfhandle_t *smb_smf_scf_init(char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_get_instance(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_create_instance(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_start_transaction(smb_scfhandle_t *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_end_transaction(smb_scfhandle_t *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_set_string_property(smb_scfhandle_t *, char *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_get_string_property(smb_scfhandle_t *, char *,
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_set_integer_property(smb_scfhandle_t *, char *, int64_t);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_get_integer_property(smb_scfhandle_t *, char *, int64_t *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_set_boolean_property(smb_scfhandle_t *, char *, uint8_t);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_get_boolean_property(smb_scfhandle_t *, char *, uint8_t *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_set_opaque_property(smb_scfhandle_t *, char *,
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_get_opaque_property(smb_scfhandle_t *, char *,
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_create_service_pgroup(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_delete_service_pgroup(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_create_instance_pgroup(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_delete_instance_pgroup(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_delete_property(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_instance_exists(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_instance_create(smb_scfhandle_t *, char *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern int smb_smf_instance_delete(smb_scfhandle_t *, char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreextern smb_scfhandle_t *smb_smf_get_iterator(char *);
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#endif /* _LIBSHARE_SMBFS_H */