2007-11-13 21:40:33 +01:00
|
|
|
/*
|
|
|
|
* rules.h - rules management header
|
|
|
|
*
|
2008-03-15 09:10:32 +01:00
|
|
|
* Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
|
2007-11-13 21:40:33 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AWESOME_RULES_H
|
|
|
|
#define AWESOME_RULES_H
|
|
|
|
|
2008-01-13 15:44:01 +01:00
|
|
|
#include "structs.h"
|
2007-11-13 21:40:33 +01:00
|
|
|
|
|
|
|
#define RULE_NOSCREEN -1
|
|
|
|
|
2008-02-13 06:53:08 +01:00
|
|
|
regex_t * rules_compile_regex(char *);
|
2008-04-10 11:55:36 +02:00
|
|
|
bool tag_match_rule(Tag *, rule_t *);
|
|
|
|
rule_t * rule_matching_client(Client *);
|
2007-11-13 21:40:33 +01:00
|
|
|
|
2008-04-10 11:55:36 +02:00
|
|
|
DO_SLIST(rule_t, rule, p_delete)
|
2008-01-13 15:44:01 +01:00
|
|
|
|
2007-11-13 21:40:33 +01:00
|
|
|
#endif
|
2007-12-18 09:24:15 +01:00
|
|
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|