skyrope-mit-merge-hell-20040226
[openafs.git] / src / WINNT / afssvrmgr / subset.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef SUBSET_H
11 #define SUBSET_H
12
13
14 /*
15  * VARIABLES __________________________________________________________________
16  *
17  */
18
19 typedef struct
20    {
21    TCHAR szSubset[ cchNAME ];   // subset name ("" if unspecified)
22    BOOL fModified;      // TRUE if subset contents changed
23    LPTSTR pszMonitored; // allocated multistring of servers
24    LPTSTR pszUnmonitored;       // allocated multistring of servers
25    } SUBSET, *LPSUBSET;
26
27
28 /*
29  * PROTOTYPES _________________________________________________________________
30  *
31  */
32
33 BOOL     Subsets_fMonitorServer (LPSUBSET sub, LPIDENT lpiServer);
34 LPSUBSET Subsets_SetMonitor (LPSUBSET sub, LPIDENT lpiServer, BOOL fMonitor);
35
36 void ShowSubsetsDialog (void);
37
38 BOOL     Subsets_SaveIfDirty (LPSUBSET sub);
39
40 BOOL     Subsets_EnumSubsets (LPTSTR pszCell, size_t iIndex, LPTSTR pszSubset);
41 LPSUBSET Subsets_LoadSubset  (LPTSTR pszCell, LPTSTR pszSubset);
42 BOOL     Subsets_SaveSubset  (LPTSTR pszCell, LPTSTR pszSubset, LPSUBSET sub);
43 LPSUBSET Subsets_CopySubset  (LPSUBSET sub, BOOL fMakeIfNULL = FALSE);
44 void     Subsets_FreeSubset  (LPSUBSET sub);
45
46
47 #endif
48