1 /* HexChat
2  * Copyright (C) 1998-2010 Peter Zelezny.
3  * Copyright (C) 2009-2013 Berke Viktor.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19 
20 #ifndef HEXCHAT_URL_H
21 #define HEXCHAT_URL_H
22 
23 extern void *url_tree;
24 
25 #define WORD_URL     1
26 #define WORD_CHANNEL 2
27 #define WORD_HOST    3
28 #define WORD_HOST6   4
29 #define WORD_EMAIL   5
30 #define WORD_NICK    6
31 /* anything >0 will be displayed as a link by gtk_xtext_motion_notify() */
32 #define WORD_DIALOG  -1
33 #define WORD_PATH    -2
34 
35 void url_clear (void);
36 void url_save_tree (const char *fname, const char *mode, gboolean fullpath);
37 int url_last (int *, int *);
38 int url_check_word (const char *word);
39 void url_check_line (char *buf);
40 
41 #endif
42