Update copyright year and devel mailing list
[privoxy.git] / client-tags.h
1 #ifndef CLIENT_TAGS_H_INCLUDED
2 #define CLIENT_TAGS_H_INCLUDED
3 #define CLIENT_TAGS_H_VERSION "$Id: client-tags.h,v 1.2 2016/05/03 13:21:42 fabiankeil Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/client-tags.h,v $
7  *
8  * Purpose     :  Declares functions for client-specific tags.
9  *
10  * Copyright   :  Copyright (C) 2016 Fabian Keil <fk@fabiankeil.de>
11  *
12  *                This program is free software; you can redistribute it
13  *                and/or modify it under the terms of the GNU General
14  *                Public License as published by the Free Software
15  *                Foundation; either version 2 of the License, or (at
16  *                your option) any later version.
17  *
18  *                This program is distributed in the hope that it will
19  *                be useful, but WITHOUT ANY WARRANTY; without even the
20  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
21  *                PARTICULAR PURPOSE.  See the GNU General Public
22  *                License for more details.
23  *
24  *                The GNU General Public License should be included with
25  *                this file.  If not, you can view it at
26  *                http://www.gnu.org/copyleft/gpl.html
27  *                or write to the Free Software Foundation, Inc., 59
28  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
29  *
30  *********************************************************************/
31
32 extern int client_tag_match(const struct pattern_spec *pattern,
33                             const struct list *tags);
34 extern void get_tag_list_for_client(struct list *tag_list,
35                                     const char *client_address);
36 extern jb_err disable_client_specific_tag(struct client_state *csp,
37                                           const char *tag_name);
38 extern jb_err enable_client_specific_tag(struct client_state *csp,
39                                          const char *tag_name,
40                                          const time_t time_to_live);
41 extern int client_has_requested_tag(const char *client_address,
42                                     const char *tag);
43 extern void set_client_address(struct client_state *csp,
44                                const struct list *headers);
45
46 #define CLIENT_TAG_LENGTH_MAX 50
47 #endif