1 #ifndef ROXTERM_REGEX_H
2 #define ROXTERM_REGEX_H
3 /*
4     roxterm - VTE/GTK terminal emulator with tabs
5     Copyright (C) 2004-2018 Tony Houghton <h@realh.co.uk>
6 
7     This program is free software; you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation; either version 2 of the License, or
10     (at your option) any later version.
11 
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16 
17     You should have received a copy of the GNU General Public License
18     along with this program; if not, write to the Free Software
19     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 */
21 
22 
23 #ifndef DEFNS_H
24 #include "defns.h"
25 #endif
26 
27 typedef enum {
28     ROXTerm_Match_Invalid,
29     ROXTerm_Match_FullURI,
30     ROXTerm_Match_URINoScheme,
31     ROXTerm_Match_SSH_Host,
32     ROXTerm_Match_MailTo,
33     ROXTerm_Match_VOIP,
34     ROXTerm_Match_File,
35 } ROXTerm_MatchType;
36 
37 typedef struct {
38     const char *regex;
39     ROXTerm_MatchType match_type;
40 } ROXTerm_RegexAndType;
41 
42 extern ROXTerm_RegexAndType roxterm_regexes[];
43 
44 #endif /* ROXTERM_REGEX_H */
45 
46 /* vi:set sw=4 ts=4 noet cindent cino= */
47