ReactOS  0.4.14-dev-77-gd9e7c48
bookmark.h
Go to the documentation of this file.
1 /* bookmark.h
2  *
3  * Copyright (c) 1992-2001 by Mike Gleason.
4  * All rights reserved.
5  *
6  */
7 
8 typedef struct Bookmark *BookmarkPtr;
9 typedef struct Bookmark {
10  char bookmarkName[16];
11  char name[64];
12  char user[64];
13  char pass[64];
14  char acct[64];
15  char dir[160];
16  char ldir[160];
17  int xferType;
18  unsigned int port;
20  int hasSIZE;
21  int hasMDTM;
22  int hasPASV;
23  int isUnix;
24  char lastIP[32];
25  char comment[128];
26  int xferMode;
27  int hasUTIME;
28 
29  int deleted;
30 } Bookmark;
31 
32 #define kBookmarkVersion 8
33 #define kBookmarkMinVersion 3
34 #if defined(WIN32) || defined(_WINDOWS)
35 # define kBookmarkFileName "bookmarks.txt"
36 #else
37 # define kBookmarkFileName "bookmarks"
38 #endif
39 #define kTmpBookmarkFileName "bookmarks-tmp"
40 #define kOldBookmarkFileName "hosts"
41 #define kBookmarkBupFileName "bookmarks.old"
42 
43 #define BMTINDEX(p) ((int) ((char *) p - (char *) gBookmarkTable) / (int) sizeof(Bookmark))
44 
45 /* bookmark.c */
46 void BookmarkToURL(BookmarkPtr, char *, size_t);
48 int ParseHostLine(char *, BookmarkPtr);
49 void CloseBookmarkFile(FILE *);
50 FILE *OpenBookmarkFile(int *);
52 int SaveBookmarkTable(void);
53 int GetNextBookmark(FILE *, Bookmark *);
54 int GetBookmark(const char *const, Bookmark *);
55 int PutBookmark(Bookmark *, int);
56 int LoadBookmarkTable(void);
57 BookmarkPtr SearchBookmarkTable(const char *);
58 void SortBookmarks(void);
59 void DefaultBookmarkName(char *, size_t, char *);
char dir[160]
Definition: bookmark.h:15
void CloseBookmarkFile(FILE *)
Definition: bookmark.c:246
int LoadBookmarkTable(void)
Definition: bookmark.c:524
struct Bookmark * BookmarkPtr
Definition: bookmark.h:8
FILE * OpenTmpBookmarkFile(int)
Definition: bookmark.c:666
int SaveBookmarkTable(void)
Definition: bookmark.c:710
int isUnix
Definition: bookmark.h:23
int hasMDTM
Definition: bookmark.h:21
int hasPASV
Definition: bookmark.h:22
int hasSIZE
Definition: bookmark.h:20
int ParseHostLine(char *, BookmarkPtr)
Definition: bookmark.c:135
char comment[128]
Definition: bookmark.h:25
pass
Definition: typegen.h:24
char bookmarkName[16]
Definition: bookmark.h:10
unsigned int port
Definition: bookmark.h:18
char lastIP[32]
Definition: bookmark.h:24
void BookmarkToURL(BookmarkPtr, char *, size_t)
Definition: bookmark.c:36
int xferMode
Definition: bookmark.h:26
int GetBookmark(const char *const, Bookmark *)
Definition: bookmark.c:387
int GetNextBookmark(FILE *, Bookmark *)
Definition: bookmark.c:257
char user[64]
Definition: bookmark.h:12
void SetBookmarkDefaults(BookmarkPtr)
Definition: bookmark.c:74
BookmarkPtr SearchBookmarkTable(const char *)
Definition: bookmark.c:498
char ldir[160]
Definition: bookmark.h:16
int deleted
Definition: bookmark.h:29
void SortBookmarks(void)
Definition: bookmark.c:507
int PutBookmark(Bookmark *, int)
Definition: bookmark.c:748
__kernel_time_t time_t
Definition: linux.h:252
int hasUTIME
Definition: bookmark.h:27
Definition: name.c:36
char acct[64]
Definition: bookmark.h:14
time_t lastCall
Definition: bookmark.h:19
int xferType
Definition: bookmark.h:17
struct Bookmark Bookmark
void DefaultBookmarkName(char *, size_t, char *)
Definition: bookmark.c:817
FILE * OpenBookmarkFile(int *)
Definition: bookmark.c:275