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
|
/************************************************************************
* IRC - Internet Relay Chat, common/send_ext.h
* Copyright (C) 1997 Alain Nissen
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* This file contains external definitions for global variables and functions
defined in common/send.c.
*/
/* External definitions for global functions.
*/
#ifndef SEND_C
#define EXTERN extern
#else /* SEND_C */
#define EXTERN
#endif /* SEND_C */
EXTERN int send_queued (aClient *to);
EXTERN int vsendto_one (aClient *to, char *pattern, va_list va);
EXTERN int sendto_one (aClient *to, char *pattern, ...);
EXTERN void logfiles_open(void);
EXTERN void logfiles_close(void);
EXTERN int send_message (aClient *, char *, int);
EXTERN void flush_connections (int fd);
EXTERN void flush_fdary (FdAry *);
EXTERN void setup_svchans(void);
EXTERN void sendto_flog (aClient *cptr, char msg,
char *username, char *hostname);
EXTERN void sendto_channel_butone (aClient *one, aClient *from,
aChannel *chptr, char *pattern, ...);
EXTERN void sendto_serv_butone (aClient *one, char *pattern, ...);
EXTERN int sendto_serv_v (aClient *one, int ver, char *pattern, ...);
EXTERN void sendto_common_channels (aClient *user, char *pattern, ...);
EXTERN void sendto_channel_butserv (aChannel *chptr, aClient *from,
char *pattern, ...);
EXTERN void sendto_match_servs (aChannel *chptr, aClient *from,
char *format, ...);
EXTERN int sendto_match_servs_v (aChannel *chptr, aClient *from, int ver,
char *format, ...);
#if 0
EXTERN int sendto_serv_notv (aClient *one, int ver, char *pattern, ...);
EXTERN int sendto_match_servs_notv (aChannel *chptr, aClient *from, int ver,
char *format, ...);
#endif
EXTERN void sendto_match_butone (aClient *one, aClient *from, char *mask,
int what, char *pattern, ...);
EXTERN void sendto_ops_butone (aClient *one, char *from, char *pattern,
...);
EXTERN void sendto_prefix_one (aClient *to, aClient *from, char *pattern,
...);
EXTERN void sendto_flag (u_int chan, char *pattern, ...);
EXTERN void initanonymous(void);
#undef EXTERN
|