ReactOS 0.4.16-dev-92-g0c2cdca
pref.h
Go to the documentation of this file.
1/* pref.h
2 *
3 * Copyright (c) 1992-2001 by Mike Gleason.
4 * All rights reserved.
5 *
6 */
7
8#if defined(WIN32) || defined(_WINDOWS)
9# define kFirewallPrefFileName "firewall.txt"
10# define kGlobalFirewallPrefFileName "..\\..\\firewall.txt"
11# define kGlobalFixedFirewallPrefFileName "..\\..\\firewall_fixed.txt"
12# define kGlobalPrefFileName "..\\..\\prefs_v3.txt"
13# define kGlobalFixedPrefFileName "..\\..\\prefs_v3_fixed.txt"
14# define kPrefFileName "prefs_v3.txt"
15# define kPrefFileNameV2 "prefs"
16# define kFirstFileName "init_v3.txt"
17#else
18# define kFirewallPrefFileName "firewall"
19# define kGlobalFirewallPrefFileName "/etc/ncftp.firewall"
20# define kGlobalFixedFirewallPrefFileName "/etc/ncftp.firewall.fixed"
21# define kGlobalPrefFileName "/etc/ncftp.prefs_v3"
22# define kGlobalFixedPrefFileName "/etc/ncftp.prefs_v3.fixed"
23# define kPrefFileName "prefs_v3"
24# define kPrefFileNameV2 "prefs"
25# define kFirstFileName "init_v3"
26#endif
27
28#define kOpenSelectedBookmarkFileName "bm2open"
29
30typedef void (*PrefProc)(int i, const char *const, FILE *const fp);
31typedef struct PrefOpt {
32 const char *varname;
36
37#define kPrefOptObselete (-1)
38#define kPrefOptInvisible 0
39#define kPrefOptVisible 1
40
41#define PREFOBSELETE (PrefProc) 0, kPrefOptObselete,
42
43/* pref.c */
44void SetAnonPass(int, const char *const, FILE *const);
45void SetAutoAscii(int t, const char *const val, FILE *const fp);
46void SetAutoResume(int, const char *const, FILE *const);
47void SetAutoSaveChangesToExistingBookmarks(int t, const char *const val, FILE *const fp);
48void SetConfirmClose(int, const char *const, FILE *const);
49void SetConnTimeout(int, const char *const, FILE *const);
50void SetCtrlTimeout(int, const char *const, FILE *const);
51void SetLogSize(int t, const char *const val, FILE *const fp);
52void SetNoAds(int t, const char *const val, FILE *const fp);
53void SetOneTimeMessages(int t, const char *const val, FILE *const);
54void SetPager(int, const char *const, FILE *const);
55void SetPassive(int, const char *const, FILE *const);
56void SetProgressMeter(int, const char *const, FILE *const);
57void SetRedialDelay(int t, const char *const val, FILE *const fp);
58void SetSavePasswords(int, const char *const, FILE *const);
59void SetSOBufsize(int t, const char *const val, FILE *const fp);
60void SetXferTimeout(int, const char *const, FILE *const);
61void SetXtTitle(int, const char *const, FILE *const);
62void Set(const char *const, const char *const);
63void ProcessPrefsFile(FILE *const fp);
64void LoadPrefs(void);
65void InitPrefs(void);
66void PostInitPrefs(void);
67void SavePrefs(void);
70void LoadFirewallPrefs(int);
71void CheckForNewV3User(void);
72int HasSeenOneTimeMessage(const char *const msg);
73void SetSeenOneTimeMessage(const char *const msg);
74int OneTimeMessage(const char *const msg);
#define msg(x)
Definition: auth_time.c:54
GLdouble GLdouble t
Definition: gl.h:2047
GLuint GLfloat * val
Definition: glext.h:7180
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static BOOL Set
Definition: pageheap.c:10
void SetSavePasswords(int, const char *const, FILE *const)
void SetAutoResume(int, const char *const, FILE *const)
void SetSeenOneTimeMessage(const char *const msg)
Definition: pref.c:494
void(* PrefProc)(int i, const char *const, FILE *const fp)
Definition: pref.h:30
void ProcessPrefsFile(FILE *const fp)
Definition: pref.c:520
void SetLogSize(int t, const char *const val, FILE *const fp)
void SetCtrlTimeout(int, const char *const, FILE *const)
void SetRedialDelay(int t, const char *const val, FILE *const fp)
void SetXtTitle(int, const char *const, FILE *const)
void LoadPrefs(void)
Definition: pref.c:555
void SetNoAds(int t, const char *const val, FILE *const fp)
void SetAutoSaveChangesToExistingBookmarks(int t, const char *const val, FILE *const fp)
void SetAutoAscii(int t, const char *const val, FILE *const fp)
void SetConfirmClose(int, const char *const, FILE *const)
void CheckForNewV3User(void)
Definition: pref.c:738
void SetProgressMeter(int, const char *const, FILE *const)
void SetConnTimeout(int, const char *const, FILE *const)
int HasSeenOneTimeMessage(const char *const msg)
Definition: pref.c:477
void SetXferTimeout(int, const char *const, FILE *const)
void SavePrefs(void)
Definition: pref.c:695
void SetSOBufsize(int t, const char *const val, FILE *const fp)
void LoadFirewallPrefs(int)
Definition: preffw.c:268
void SetAnonPass(int, const char *const, FILE *const)
void SetPager(int, const char *const, FILE *const)
int OneTimeMessage(const char *const msg)
Definition: pref.c:508
void PostInitPrefs(void)
Definition: pref.c:680
void ProcessFirewallPrefFile(FILE *)
Definition: preffw.c:213
void SetOneTimeMessages(int t, const char *const val, FILE *const)
void InitPrefs(void)
Definition: pref.c:616
void SetPassive(int, const char *const, FILE *const)
void WriteDefaultFirewallPrefs(FILE *)
Definition: preffw.c:39
Definition: pref.h:31
const char * varname
Definition: pref.h:32
int visible
Definition: pref.h:34
PrefProc proc
Definition: pref.h:33