forked from raduprv/Eternal-Lands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuddy.h
executable file
·91 lines (76 loc) · 1.66 KB
/
buddy.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*!
* \file
* \ingroup network_text
* \brief The implementation of the buddy list
*/
#ifndef __BUDDY_H__
#define __BUDDY_H__
#ifdef __cplusplus
extern "C" {
#endif
/*!
* \name windows handlers
*/
/*! @{ */
extern int buddy_win; /*!< The identifier of the buddy window */
/*! @} */
extern int buddy_menu_x;
extern int buddy_menu_y;
/*!
* \ingroup other
* \brief Initiates the buddy list
*
* Inititates the buddy list (sets all types to 255)
*
* \sa init_stuff
*/
void init_buddy(void);
/*!
* \ingroup buddy_window
* \brief Initiates the buddy window
*
* The function is used for initiating the buddy window or setting an existing buddy window to be displayed.
*
* \callgraph
*/
void display_buddy(void);
/*!
* \ingroup network_text
* \brief Adds a buddy to the buddy list
*
* Adds a buddy of the given type to the buddy list.
*
* \param name The name of the buddy
* \param type The type of buddy
* \param len The length of the name
*
* \sa process_message_from_server
*/
void add_buddy (const char *name, int type, int len);
/*!
* \ingroup network_text
* \brief Removes a buddy from the network data
*
* Removes a buddy from the buddy list.
*
* \param name The name of the buddy to remove
* \param len The length of the name
*
* \sa process_message_from_server
*/
void del_buddy (const char *name, int len);
/*!
* \ingroup other
* \brief Clears the buddy list
*
* Clears the buddy list
*/
void clear_buddy(void);
void add_buddy_confirmation(char *name);
int is_in_buddylist(const char *name);
int accept_buddy_console_command(const char *name);
void destroy_buddy_queue(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif