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