Removed all permissionsfile code - it's now called the actions
[privoxy.git] / list.h
1 #ifndef _LIST_H
2 #define _LIST_H
3 #define LIST_H_VERSION "$Id: list.h,v NOT CHECKED IN YET $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/list.c,v $
7  *
8  * Purpose     :  Declares functions to handle lists.
9  *                Functions declared include:
10  *                   `destroy_list', `enlist' and `list_to_text'
11  *
12  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
13  *                IJBSWA team.  http://ijbswa.sourceforge.net
14  *
15  *                Based on the Internet Junkbuster originally written
16  *                by and Copyright (C) 1997 Anonymous Coders and 
17  *                Junkbusters Corporation.  http://www.junkbusters.com
18  *
19  *                This program is free software; you can redistribute it 
20  *                and/or modify it under the terms of the GNU General
21  *                Public License as published by the Free Software
22  *                Foundation; either version 2 of the License, or (at
23  *                your option) any later version.
24  *
25  *                This program is distributed in the hope that it will
26  *                be useful, but WITHOUT ANY WARRANTY; without even the
27  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
28  *                PARTICULAR PURPOSE.  See the GNU General Public
29  *                License for more details.
30  *
31  *                The GNU General Public License should be included with
32  *                this file.  If not, you can view it at
33  *                http://www.gnu.org/copyleft/gpl.html
34  *                or write to the Free Software Foundation, Inc., 59
35  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
36  *
37  * Revisions   :
38  *    $Log: list.c,v $
39  *
40  *********************************************************************/
41 \f
42
43 #include "project.h"
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49
50 extern void enlist(struct list *h, const char *s);
51 extern void destroy_list(struct list *h);
52 extern char *list_to_text(struct list *h);
53
54 void enlist_unique(struct list *header, const char *str);
55
56 int list_remove_item(struct list *header, const char *str);
57 int list_remove_list(struct list *header, const struct list *to_remove);
58
59 void list_duplicate(struct list *dest, const struct list *src);
60 void list_append_list_unique(struct list *dest, const struct list *src);
61
62 void destroy_list_share(struct list_share *h);
63 void enlist_share(struct list_share *header, const char *str);
64 void enlist_unique_share(struct list_share *header, const char *str);
65 int list_remove_item_share(struct list_share *header, const char *str);
66 int list_remove_list_share(struct list_share *dest, const struct list *src);
67 void list_duplicate_share(struct list_share *dest, const struct list *src);
68 void list_append_list_unique_share(struct list_share *dest, const struct list *src);
69
70 /* Revision control strings from this header and associated .c file */
71 extern const char list_rcs[];
72 extern const char list_h_rcs[];
73
74 #ifdef __cplusplus
75 } /* extern "C" */
76 #endif
77
78 #endif /* ndef _LIST_H */
79
80 /*
81   Local Variables:
82   tab-width: 3
83   end:
84 */