Files
bitchx/include/notify.h
Kevin Easton 52b57d1576 Move the definition of the NotifyItem and NotifyList types from struct.h to notify.h
This change means that struct.h no longer needs to include alist.h, so it will be indirectly included in a lot
fewer other files.

As a consequence, server.h needs to include notify.h to get the definitions of those data types.
2017-05-04 23:50:47 +10:00

63 lines
1.4 KiB
C

/*
* notify.h: header for notify.c
*
* Written By Michael Sandrof
*
* Copyright(c) 1990
*
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
*
* @(#)$Id$
*/
#ifndef NOTIFY_H_
#define NOTIFY_H_
#include "alist.h"
/* These types pun the Array_item and Array types from alist.h respectively */
typedef struct notify_stru
{
char *nick; /* Who are we watching? */
u_32int_t hash;
char *host;
char *looking;
int times;
time_t lastseen;
time_t period;
time_t added;
int flag; /* Is the person on irc? */
} NotifyItem;
typedef struct notify_alist
{
struct notify_stru **list;
int max;
int max_alloc;
alist_func func;
hash_type hash;
char *ison;
} NotifyList;
void show_notify_list (int);
BUILT_IN_COMMAND(notify);
void do_notify (void);
void notify_mark (char *, char *, int, int);
void save_notify (FILE *);
void set_notify_handler (Window *, char *, int);
void make_notify_list (int);
int hard_uh_notify (int, char *, char *, char *);
extern char *get_notify_nicks (int, int, char *, int);
void add_delay_notify (int);
void notify_count (int, int *, int *);
void rebuild_notify_ison (int);
void rebuild_all_ison (void);
void save_watch(FILE *);
BUILT_IN_COMMAND(watchcmd);
void show_watch_list (int);
void make_watch_list (int);
void show_watch_notify (char *, int, char **);
void send_watch (int);
char *get_watch_nicks (int, int, char *, int);
#endif /* NOTIFY_H_ */