forked from raduprv/Eternal-Lands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
url.h
77 lines (68 loc) · 1.72 KB
/
url.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*!
* \file
* \ingroup url
* \brief Store, use and display URLs seen in chat.
*/
#ifndef __URL_H__
#define __URL_H__
/*!
* \ingroup url
* \brief Clears the list of stored URL freeing all allocated memory.
*
*/
void destroy_url_list(void);
/*!
* \ingroup url
* \brief Implements the #url command.
*
* \param text any text that follows the command
* \param len the number of characters in the string.
*
*/
int url_command(const char *text, int len);
/*!
* \ingroup url
* \brief Opens the last seen URL.
*
*/
void open_last_seen_url(void);
/*!
* \ingroup url
* \brief Saves the number of URL for comparison later using num_new_url().
*
*/
void save_url_count(void);
/* return the number of url since last*/
/*!
* \ingroup url
* \brief Return the number of URL seen since last save_url_count() call.
*
*/
int num_new_url(void);
/*!
* \ingroup url
* \brief Stores any URL found in \a source_string.
*
* \param source_string the string that potentaill contains URLs
* \param len the length of \a source_string.
*
*/
void find_all_url(const char *source_string, const int len);
/*!
* \ingroup url
* \brief Displays the window of stored URLs.
*
*/
void fill_url_window(void);
/*!
* \ingroup url
* \brief Opens a url in the configured browser
*
*/
void open_web_link(const char * url);
extern char browser_name[120]; /*!< a buffer that contains the name of the browser we should use */
extern int url_win_x; /*!< the current x coordinate value of the url window */
extern int url_win_y; /*!< the current y coordinate value of the url window */
extern int url_win; /*!< the id of the url window */
extern char LOGO_URL_LINK[128]; /*!< the link clicking the EL logo sends you to */
#endif