ReactOS  0.4.14-dev-599-g2d4d3f5
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 
30 typedef void (*PrefProc)(int i, const char *const, FILE *const fp);
31 typedef struct PrefOpt {
32  const char *varname;
34  int visible;
35 } PrefOpt;
36 
37 #define kPrefOptObselete (-1)
38 #define kPrefOptInvisible 0
39 #define kPrefOptVisible 1
40 
41 #define PREFOBSELETE (PrefProc) 0, kPrefOptObselete,
42 
43 /* pref.c */
44 void SetAnonPass(int, const char *const, FILE *const);
45 void SetAutoAscii(int t, const char *const val, FILE *const fp);
46 void SetAutoResume(int, const char *const, FILE *const);
47 void SetAutoSaveChangesToExistingBookmarks(int t, const char *const val, FILE *const fp);
48 void SetConfirmClose(int, const char *const, FILE *const);
49 void SetConnTimeout(int, const char *const, FILE *const);
50 void SetCtrlTimeout(int, const char *const, FILE *const);
51 void SetLogSize(int t, const char *const val, FILE *const fp);
52 void SetNoAds(int t, const char *const val, FILE *const fp);
53 void SetOneTimeMessages(int t, const char *const val, FILE *const);
54 void SetPager(int, const char *const, FILE *const);
55 void SetPassive(int, const char *const, FILE *const);
56 void SetProgressMeter(int, const char *const, FILE *const);
57 void SetRedialDelay(int t, const char *const val, FILE *const fp);
58 void SetSavePasswords(int, const char *const, FILE *const);
59 void SetSOBufsize(int t, const char *const val, FILE *const fp);
60 void SetXferTimeout(int, const char *const, FILE *const);
61 void SetXtTitle(int, const char *const, FILE *const);
62 void Set(const char *const, const char *const);
63 void ProcessPrefsFile(FILE *const fp);
64 void LoadPrefs(void);
65 void InitPrefs(void);
66 void PostInitPrefs(void);
67 void SavePrefs(void);
70 void LoadFirewallPrefs(int);
71 void CheckForNewV3User(void);
72 int HasSeenOneTimeMessage(const char *const msg);
73 void SetSeenOneTimeMessage(const char *const msg);
74 int OneTimeMessage(const char *const msg);
void SetSOBufsize(int t, const char *const val, FILE *const fp)
int visible
Definition: pref.h:34
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
void SetLogSize(int t, const char *const val, FILE *const fp)
void InitPrefs(void)
Definition: pref.c:616
GLdouble GLdouble t
Definition: gl.h:2047
void SetSeenOneTimeMessage(const char *const msg)
Definition: pref.c:494
void SetPassive(int, const char *const, FILE *const)
void SetNoAds(int t, const char *const val, FILE *const fp)
int HasSeenOneTimeMessage(const char *const msg)
Definition: pref.c:477
void ProcessFirewallPrefFile(FILE *)
Definition: preffw.c:213
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
void SetOneTimeMessages(int t, const char *const val, FILE *const)
void SetXferTimeout(int, const char *const, FILE *const)
void SetAutoAscii(int t, const char *const val, FILE *const fp)
int OneTimeMessage(const char *const msg)
Definition: pref.c:508
void LoadFirewallPrefs(int)
Definition: preffw.c:268
GLuint GLfloat * val
Definition: glext.h:7180
void WriteDefaultFirewallPrefs(FILE *)
Definition: preffw.c:39
void SetPager(int, const char *const, FILE *const)
const char * varname
Definition: pref.h:32
PrefProc proc
Definition: pref.h:33
void SetAutoSaveChangesToExistingBookmarks(int t, const char *const val, FILE *const fp)
void SetCtrlTimeout(int, const char *const, FILE *const)
void SetAutoResume(int, const char *const, FILE *const)
Definition: pref.h:31
void CheckForNewV3User(void)
Definition: pref.c:738
void Set(const char *const, const char *const)
Definition: pref.c:430
void SetAnonPass(int, const char *const, FILE *const)
void ProcessPrefsFile(FILE *const fp)
Definition: pref.c:520
void SetProgressMeter(int, const char *const, FILE *const)
void SetXtTitle(int, const char *const, FILE *const)
void PostInitPrefs(void)
Definition: pref.c:680
#define msg(x)
Definition: auth_time.c:54
void SetRedialDelay(int t, const char *const val, FILE *const fp)
void SavePrefs(void)
Definition: pref.c:695
void LoadPrefs(void)
Definition: pref.c:555
void SetConnTimeout(int, const char *const, FILE *const)
struct PrefOpt PrefOpt
void SetSavePasswords(int, const char *const, FILE *const)
void(* PrefProc)(int i, const char *const, FILE *const fp)
Definition: pref.h:30
void SetConfirmClose(int, const char *const, FILE *const)