ekg2
plugins/irc/people.h
Idź do dokumentacji tego pliku.
00001 /*
00002  *  (C) Copyright 2004-2005 Michal 'GiM' Spadlinski <gim at skrzynka dot pl>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License Version 2 as
00006  *  published by the Free Software Foundation.
00007  *
00008  *  This program is distributed in the hope that it will be useful,
00009  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  *  GNU General Public License for more details.
00012  *
00013  *  You should have received a copy of the GNU General Public License
00014  *  along with this program; if not, write to the Free Software
00015  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00016  */
00017 
00018 #ifndef __IRC_PIPL_H
00019 #define __IRC_PIPL_H
00020 
00021 #include <ekg/sessions.h>
00022 #include "irc.h"
00023 
00024 people_t *irc_find_person(list_t p, char *nick);
00025 channel_t *irc_find_channel(list_t p, char *channame);
00026 people_chan_t *irc_find_person_chan(list_t p, char *channame);
00027 
00028 /* person joins channel */
00029 people_t *irc_add_person(session_t *s, irc_private_t *j, char *nick, char *channame);
00030 /* we join channel */
00031 int irc_add_people(session_t *s, irc_private_t *j, char *names, char *channame);
00032 
00033 /* someone made /part */
00034 int irc_del_person_channel(session_t *s, irc_private_t *j, char *nick, char *chan);
00035 /* someone made /quit */
00036 int irc_del_person(session_t *s, irc_private_t *j, char *nick,
00037                 char *wholenick, char *reason, int doprint);
00038 /* we've made /part */
00039 int irc_del_channel(session_t *s, irc_private_t *j, char *name);
00040 
00041 /* add channel to our list of channels */
00042 channel_t *irc_add_channel(session_t *s, irc_private_t *j, char *name,
00043                 window_t *win);
00044 
00045 int irc_nick_change(session_t *s, irc_private_t *j, char *old_nick, char *new_nick);
00046 int irc_nick_prefix(irc_private_t *j, people_chan_t *ch, int irc_color);
00047 int irc_color_in_contacts(irc_private_t *j, int mode, userlist_t *ul);
00048 
00049 /* clean up */
00050 int irc_free_people(session_t *s, irc_private_t *j);
00051 
00052 #endif
00053 
00054 /*
00055  * Local Variables:
00056  * mode: c
00057  * c-file-style: "k&r"
00058  * c-basic-offset: 8
00059  * indent-tabs-mode: t
00060  * End:
00061  */
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje