ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
people.h
Idź do dokumentacji tego pliku.
1 /*
2  * (C) Copyright 2004-2005 Michal 'GiM' Spadlinski <gim at skrzynka dot pl>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License Version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16  */
17 
18 #ifndef __IRC_PIPL_H
19 #define __IRC_PIPL_H
20 
21 #include <ekg/sessions.h>
22 #include "irc.h"
23 
24 people_t *irc_find_person(list_t p, char *nick);
25 channel_t *irc_find_channel(list_t p, char *channame);
26 people_chan_t *irc_find_person_chan(list_t p, char *channame);
27 
28 /* person joins channel */
29 people_t *irc_add_person(session_t *s, irc_private_t *j, char *nick, char *channame);
30 /* we join channel */
31 int irc_add_people(session_t *s, irc_private_t *j, char *names, char *channame);
32 
33 /* someone made /part */
34 int irc_del_person_channel(session_t *s, irc_private_t *j, char *nick, char *chan);
35 /* someone made /quit */
36 int irc_del_person(session_t *s, irc_private_t *j, char *nick,
37  char *wholenick, char *reason, int doprint);
38 /* we've made /part */
39 int irc_del_channel(session_t *s, irc_private_t *j, char *name);
40 
41 /* add channel to our list of channels */
43  window_t *win);
44 
45 int irc_nick_change(session_t *s, irc_private_t *j, char *old_nick, char *new_nick);
46 int irc_nick_prefix(irc_private_t *j, people_chan_t *ch, int irc_color);
47 int irc_color_in_contacts(irc_private_t *j, int mode, userlist_t *ul);
48 
49 /* clean up */
51 
52 #endif
53 
54 /*
55  * Local Variables:
56  * mode: c
57  * c-file-style: "k&r"
58  * c-basic-offset: 8
59  * indent-tabs-mode: t
60  * End:
61  */