15331Samw /* 25331Samw * CDDL HEADER START 35331Samw * 45331Samw * The contents of this file are subject to the terms of the 55331Samw * Common Development and Distribution License (the "License"). 65331Samw * You may not use this file except in compliance with the License. 75331Samw * 85331Samw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95331Samw * or http://www.opensolaris.org/os/licensing. 105331Samw * See the License for the specific language governing permissions 115331Samw * and limitations under the License. 125331Samw * 135331Samw * When distributing Covered Code, include this CDDL HEADER in each 145331Samw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155331Samw * If applicable, add the following below this CDDL HEADER, with the 165331Samw * fields enclosed by brackets "[]" replaced with your own identifying 175331Samw * information: Portions Copyright [yyyy] [name of copyright owner] 185331Samw * 195331Samw * CDDL HEADER END 205331Samw */ 215331Samw 225331Samw /* 237052Samw * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 245331Samw * Use is subject to license terms. 255331Samw */ 265331Samw 275331Samw /* 285331Samw * basic API declarations for share management 295331Samw */ 305331Samw 315331Samw #ifndef _LIBSHARE_SMB_H 325331Samw #define _LIBSHARE_SMB_H 335331Samw 345331Samw #ifdef __cplusplus 355331Samw extern "C" { 365331Samw #endif 375331Samw 387052Samw #include <smbsrv/smb_share.h> 395331Samw 405331Samw /* 415331Samw * defined options types. These should be in a file rather than 425331Samw * compiled in. Until there is a plugin mechanism to add new types, 435331Samw * this is sufficient. 445331Samw */ 455331Samw #define OPT_TYPE_ANY 0 465331Samw #define OPT_TYPE_STRING 1 475331Samw #define OPT_TYPE_BOOLEAN 2 485331Samw #define OPT_TYPE_NUMBER 3 495331Samw #define OPT_TYPE_PATH 4 505331Samw #define OPT_TYPE_PROTOCOL 5 515331Samw #define OPT_TYPE_NAME 6 527961SNatalie.Li@Sun.COM #define OPT_TYPE_ACCLIST 7 53*8334SJose.Borrego@Sun.COM #define OPT_TYPE_CSC 8 545331Samw 555331Samw struct option_defs { 565331Samw char *tag; 575331Samw int type; 585331Samw int share; /* share only option */ 595331Samw int (*check)(char *); 605331Samw }; 615331Samw 625331Samw /* 635331Samw * Sharectl property refresh types. Bit mask to indicate which type(s) 645331Samw * of refresh might be needed on the service(s). 655331Samw */ 665331Samw 675331Samw #define SMB_REFRESH_RESTART 0x0001 /* restart smb/server */ 685331Samw #define SMB_REFRESH_REFRESH 0x0002 /* refresh smb/server */ 695331Samw 705331Samw 715331Samw #ifdef __cplusplus 725331Samw } 735331Samw #endif 745331Samw 755331Samw #endif /* _LIBSHARE_SMB_H */ 76