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
11 #include <afs/param.h>
16 #include "agg_general.h"
17 #include "svr_general.h"
21 * PROTOTYPES _________________________________________________________________
27 * AGGREGATE PREFERENCES ______________________________________________________
31 PVOID Aggregates_LoadPreferences (LPIDENT lpiAggregate)
33 LPAGGREGATE_PREF pap = New (AGGREGATE_PREF);
35 if (!RestorePreferences (lpiAggregate, pap, sizeof(AGGREGATE_PREF)))
37 pap->perWarnAggFull = -1; // use the server's default value
38 pap->fWarnAggAlloc = FALSE;
40 Alert_SetDefaults (&pap->oa);
43 Alert_Initialize (&pap->oa);
48 BOOL Aggregates_SavePreferences (LPIDENT lpiAggregate)
52 PVOID pap = lpiAggregate->GetUserParam();
55 rc = StorePreferences (lpiAggregate, pap, sizeof(AGGREGATE_PREF));
63 * ROUTINES ___________________________________________________________________
67 LPIDENT Aggregates_GetFocused (HWND hDlg)
69 return (LPIDENT)FL_GetFocusedData (GetDlgItem (hDlg, IDC_AGG_LIST));
73 LPIDENT Aggregates_GetSelected (HWND hDlg)
75 return (LPIDENT)FL_GetSelectedData (GetDlgItem (hDlg, IDC_AGG_LIST));