1*da6c28aaSamw /* 2*da6c28aaSamw * CDDL HEADER START 3*da6c28aaSamw * 4*da6c28aaSamw * The contents of this file are subject to the terms of the 5*da6c28aaSamw * Common Development and Distribution License (the "License"). 6*da6c28aaSamw * You may not use this file except in compliance with the License. 7*da6c28aaSamw * 8*da6c28aaSamw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*da6c28aaSamw * or http://www.opensolaris.org/os/licensing. 10*da6c28aaSamw * See the License for the specific language governing permissions 11*da6c28aaSamw * and limitations under the License. 12*da6c28aaSamw * 13*da6c28aaSamw * When distributing Covered Code, include this CDDL HEADER in each 14*da6c28aaSamw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*da6c28aaSamw * If applicable, add the following below this CDDL HEADER, with the 16*da6c28aaSamw * fields enclosed by brackets "[]" replaced with your own identifying 17*da6c28aaSamw * information: Portions Copyright [yyyy] [name of copyright owner] 18*da6c28aaSamw * 19*da6c28aaSamw * CDDL HEADER END 20*da6c28aaSamw */ 21*da6c28aaSamw 22*da6c28aaSamw /* 23*da6c28aaSamw * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*da6c28aaSamw * Use is subject to license terms. 25*da6c28aaSamw */ 26*da6c28aaSamw 27*da6c28aaSamw #pragma ident "%Z%%M% %I% %E% SMI" 28*da6c28aaSamw 29*da6c28aaSamw /* 30*da6c28aaSamw * basic API declarations for share management 31*da6c28aaSamw */ 32*da6c28aaSamw 33*da6c28aaSamw #ifndef _LIBSHARE_SMB_H 34*da6c28aaSamw #define _LIBSHARE_SMB_H 35*da6c28aaSamw 36*da6c28aaSamw #ifdef __cplusplus 37*da6c28aaSamw extern "C" { 38*da6c28aaSamw #endif 39*da6c28aaSamw 40*da6c28aaSamw #include <smbsrv/lmshare.h> 41*da6c28aaSamw 42*da6c28aaSamw /* 43*da6c28aaSamw * defined options types. These should be in a file rather than 44*da6c28aaSamw * compiled in. Until there is a plugin mechanism to add new types, 45*da6c28aaSamw * this is sufficient. 46*da6c28aaSamw */ 47*da6c28aaSamw #define OPT_TYPE_ANY 0 48*da6c28aaSamw #define OPT_TYPE_STRING 1 49*da6c28aaSamw #define OPT_TYPE_BOOLEAN 2 50*da6c28aaSamw #define OPT_TYPE_NUMBER 3 51*da6c28aaSamw #define OPT_TYPE_PATH 4 52*da6c28aaSamw #define OPT_TYPE_PROTOCOL 5 53*da6c28aaSamw #define OPT_TYPE_NAME 6 54*da6c28aaSamw 55*da6c28aaSamw struct option_defs { 56*da6c28aaSamw char *tag; 57*da6c28aaSamw int type; 58*da6c28aaSamw int share; /* share only option */ 59*da6c28aaSamw int (*check)(char *); 60*da6c28aaSamw }; 61*da6c28aaSamw 62*da6c28aaSamw /* 63*da6c28aaSamw * Sharectl property refresh types. Bit mask to indicate which type(s) 64*da6c28aaSamw * of refresh might be needed on the service(s). 65*da6c28aaSamw */ 66*da6c28aaSamw 67*da6c28aaSamw #define SMB_REFRESH_RESTART 0x0001 /* restart smb/server */ 68*da6c28aaSamw #define SMB_REFRESH_REFRESH 0x0002 /* refresh smb/server */ 69*da6c28aaSamw 70*da6c28aaSamw 71*da6c28aaSamw #ifdef __cplusplus 72*da6c28aaSamw } 73*da6c28aaSamw #endif 74*da6c28aaSamw 75*da6c28aaSamw #endif /* _LIBSHARE_SMB_H */ 76