-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlinklist.h
53 lines (48 loc) · 2.47 KB
/
linklist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _LINKLIST_H
#define _LINKLIST_H
struct nlist { char string[MAXKVAL]; /* list struct for HIDE items */
int len;
struct nlist *next; };
typedef struct nlist *NLISTPTR;
struct glist { char string[MAXKVAL]; /* list struct for GROUP items */
char name[MAXKVAL];
int len;
int nlen;
struct glist *next; };
typedef struct glist *GLISTPTR;
extern GLISTPTR group_sites ; /* "group" lists */
extern GLISTPTR group_urls ;
extern GLISTPTR group_refs ;
extern GLISTPTR group_agents ;
extern GLISTPTR group_users ;
extern NLISTPTR hidden_sites ; /* "hidden" lists */
extern NLISTPTR hidden_urls ;
extern NLISTPTR hidden_refs ;
extern NLISTPTR hidden_agents ;
extern NLISTPTR hidden_users ;
extern NLISTPTR ignored_sites ; /* "Ignored" lists */
extern NLISTPTR ignored_urls ;
extern NLISTPTR ignored_refs ;
extern NLISTPTR ignored_agents;
extern NLISTPTR ignored_users ;
extern NLISTPTR include_sites ; /* "Include" lists */
extern NLISTPTR include_urls ;
extern NLISTPTR include_refs ;
extern NLISTPTR include_agents;
extern NLISTPTR include_users ;
extern NLISTPTR index_alias ; /* index. aliases */
extern NLISTPTR html_pre ; /* before anything else :) */
extern NLISTPTR html_head ; /* top HTML code */
extern NLISTPTR html_body ; /* body HTML code */
extern NLISTPTR html_post ; /* middle HTML code */
extern NLISTPTR html_tail ; /* tail HTML code */
extern NLISTPTR html_end ; /* after everything else */
extern NLISTPTR page_type ; /* page view types */
extern NLISTPTR omit_page ; /* pages not counted */
extern NLISTPTR page_prefix ; /* page view prefixes */
extern GLISTPTR search_list ; /* Search engine list */
extern char *isinlist(NLISTPTR, char *,int len); /* scan list for str */
extern char *isinglist(GLISTPTR, char *,int *len); /* scan glist for str */
extern int add_nlist(char *, NLISTPTR *); /* add list item */
extern int add_glist(char *, GLISTPTR *); /* add group list item */
#endif /* _LINKLIST_H */