X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fpreferences.h;h=7a30a7bbde56a33d5aee5088b0775594ebc881ef;hp=3fd617d44e3c65d7022d739089f8cc5337009fcd;hb=HEAD;hpb=a3ba94ad306d781296c53012f732f3a910015263 diff --git a/webcit/preferences.h b/webcit/preferences.h index 3fd617d44..7a30a7bbd 100644 --- a/webcit/preferences.h +++ b/webcit/preferences.h @@ -1,17 +1,30 @@ - - -#define PRF_STRING 1 -#define PRF_INT 2 -#define PRF_QP_STRING 3 -#define PRF_YESNO 4 - +/* + * Copyright (c) 1996-2013 by the citadel.org team + * + * This program is open source software. You can redistribute it and/or + * modify it under the terms of the GNU General Public License, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +typedef enum _ePrefType{ + PRF_UNSET = 0, + PRF_STRING = 1, + PRF_INT = 2, + PRF_QP_STRING = 3, + PRF_YESNO = 4 +} ePrefType; typedef void (*PrefEvalFunc)(StrBuf *Preference, long lvalue); void _RegisterPreference(const char *Setting, long SettingLen, const char *PrefStr, - long Type, + ePrefType Type, PrefEvalFunc OnLoad, const char *OnLoadName);