1 #ifndef CLIENT_TAGS_H_INCLUDED
2 #define CLIENT_TAGS_H_INCLUDED
3 #define CLIENT_TAGS_H_VERSION "$Id:$"
4 /*********************************************************************
8 * Purpose : Declares functions for client-specific tags.
10 * Copyright : Copyright (C) 2016 Fabian Keil <fk@fabiankeil.de>
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.
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.
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.
30 *********************************************************************/
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,
40 const time_t time_to_live);
41 extern int client_has_requested_tag(const char *client_address,