1 /*
2  * Copyright (C) 2003 Red Hat, Inc.
3  *
4  * This is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Library General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the Free Software
16  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 
19 #ifndef vte_vteregex_h_included
20 #define vte_vteregex_h_included
21 
22 
23 #include <glib.h>
24 
25 G_BEGIN_DECLS
26 
27 struct _vte_regex_match {
28 	int rm_so, rm_eo;
29 };
30 struct _vte_regex;
31 
32 struct _vte_regex * _vte_regex_compile(const char *pattern);
33 void _vte_regex_free(struct _vte_regex *regex);
34 int _vte_regex_exec(struct _vte_regex *regex, const char *string,
35 		    gsize nmatch, struct _vte_regex_match *matches);
36 G_END_DECLS
37 
38 #endif
39