2 * Copyright 2000, International Business Machines Corporation and others.
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
14 #include <afs/param.h>
19 #include "agg_general.h"
20 #include "svr_general.h"
24 * PROTOTYPES _________________________________________________________________
30 * AGGREGATE PREFERENCES ______________________________________________________
34 PVOID Aggregates_LoadPreferences (LPIDENT lpiAggregate)
36 LPAGGREGATE_PREF pap = New (AGGREGATE_PREF);
38 if (!RestorePreferences (lpiAggregate, pap, sizeof(AGGREGATE_PREF)))
40 pap->perWarnAggFull = -1; // use the server's default value
41 pap->fWarnAggAlloc = FALSE;
43 Alert_SetDefaults (&pap->oa);
46 Alert_Initialize (&pap->oa);
51 BOOL Aggregates_SavePreferences (LPIDENT lpiAggregate)
55 PVOID pap = lpiAggregate->GetUserParam();
58 rc = StorePreferences (lpiAggregate, pap, sizeof(AGGREGATE_PREF));
66 * ROUTINES ___________________________________________________________________
70 LPIDENT Aggregates_GetFocused (HWND hDlg)
72 return (LPIDENT)FL_GetFocusedData (GetDlgItem (hDlg, IDC_AGG_LIST));
76 LPIDENT Aggregates_GetSelected (HWND hDlg)
78 return (LPIDENT)FL_GetSelectedData (GetDlgItem (hDlg, IDC_AGG_LIST));