File: whowas.h

package info (click to toggle)
scrollz 2.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,992 kB
  • ctags: 4,728
  • sloc: ansic: 78,409; tcl: 2,866; makefile: 682; sh: 508
file content (56 lines) | stat: -rw-r--r-- 1,919 bytes parent folder | download | duplicates (6)
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
/*
 * whowas.h: header file for whowas.c
 *
 * Written by Scott H Kilau
 *
 * CopyRight(c) 1995
 *
 * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
 *
 * $Id: whowas.h,v 1.4 2000-08-26 10:51:54 f Exp $
 *
 * Modified by Flier
 */

#ifndef _whowas_h_
#define _whowas_h_

#include "irc.h"
#include "window.h"
#include "names.h"

/* WhowasList: structure for the whowas buffer linked list */
typedef	struct	whowaslist_stru
{
    struct    whowaslist_stru *next;  /* pointer to next whowas entry */
    time_t    time;                   /* time added on list */
    char      *channel;               /* channel they left from */
    NickList *nicklist;               /* NickList entry */
} WhowasList;

/* WhowasChanList: structure for the whowas channel buffer linked list */
typedef	struct	whowaschanlist_stru
{
    struct whowaschanlist_stru *next;  /* pointer to next whowas chan entry */
    time_t time;                       /* time added on list */
    ChannelList *channellist;          /* ChannelList entry */
} WhowasChanList;

extern WhowasList *whowas_userlist_list;
extern WhowasList *whowas_reg_list;
extern WhowasChanList *whowas_chan_list;

extern WhowasList *check_whowas_buffer _((char *, char *, char *, int));
extern void add_to_whowas_buffer _((NickList *, char */*, char *, char **/));
extern int remove_oldest_whowas _((WhowasList **, time_t, int));
extern void clean_whowas_list _((void));
extern void synch_whowas_adduser _((struct friends *));
extern void synch_whowas_unuser _((struct friends *));
extern void synch_whowas_addshit _((struct autobankicks *));
extern void synch_whowas_unshit _((struct autobankicks *));
extern WhowasChanList *check_whowas_chan_buffer _((char *, int)); 
extern int add_to_whowas_chan_buffer _((ChannelList *));
extern int remove_oldest_chan_whowas _((WhowasChanList **, time_t, int));
extern void clean_whowas_chan_list _((void));

#endif /* _whowas_h_ */