Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / include / send.h
1 /*
2  * send.h
3  *
4  * $Id$
5  */
6 #ifndef INCLUDED_send_h
7 #define INCLUDED_send_h
8 #ifndef INCLUDED_stdarg_h
9 #include <stdarg.h>         /* va_list */
10 #define INCLUDED_stdarg_h 
11 #endif
12
13 struct Channel;
14 struct Client;
15 struct DBuf;
16
17 /*
18  * Macros
19  */
20
21 #define LastDeadComment(cptr) ((cptr)->info)
22
23 /*
24  * Prototypes
25  */
26
27 extern void send_buffer(struct Client* to, char* buf);
28 extern void flush_sendq_except(const struct DBuf* one);
29
30 extern void sendto_one(struct Client *to, const char* fmt, ...);
31 extern void sendbufto_one(struct Client *to);
32 extern void sendto_ops(const char* fmt, ...);
33 extern void sendto_channel_butserv(struct Channel *chptr, struct Client *from,
34                                    const char* fmt, ...);
35 extern void sendto_serv_butone(struct Client *one, const char* fmt, ...);
36 extern void sendto_match_servs(struct Channel* chptr, struct Client* from,
37                                const char* fmt, ...);
38 extern void sendto_lowprot_butone(struct Client *cptr, int p,
39                                   const char* fmt, ...);
40 extern void sendto_highprot_butone(struct Client *cptr, int p,
41                                    const char* fmt, ...);
42 extern void sendto_prefix_one(struct Client *to, struct Client *from,
43                               const char* fmt, ...);
44 extern void flush_connections(struct Client* cptr);
45 extern void send_queued(struct Client *to);
46 extern void vsendto_one(struct Client *to, const char* fmt, va_list vl);
47 extern void sendto_channel_butone(struct Client *one, struct Client *from,
48                                   struct Channel *chptr, const char* fmt, ...);
49 extern void sendmsgto_channel_butone(struct Client *one, struct Client *from,
50                                   struct Channel *chptr, const char *sender,
51                                   const char *cmd, const char *chname, const char *msg);
52 extern void sendto_lchanops_butone(struct Client *one, struct Client *from,
53                                    struct Channel *chptr, const char* fmt, ...);
54 extern void sendto_chanopsserv_butone(struct Client *one, struct Client *from,
55                                    struct Channel *chptr, const char* fmt, ...);
56 extern void sendto_common_channels(struct Client *user, const char* fmt, ...);
57 extern void sendto_match_butone(struct Client *one, struct Client *from,
58                                 const char *mask, int what, const char* fmt, ...);
59 extern void sendto_lops_butone(struct Client *one, const char* fmt, ...);
60 extern void vsendto_ops(const char *pattern, va_list vl);
61 extern void sendto_ops_butone(struct Client *one, struct Client *from,
62                               const char* fmt, ...);
63 extern void sendto_g_serv_butone(struct Client *one, const char* fmt, ...);
64 extern void sendto_realops(const char* fmt, ...);
65 extern void vsendto_op_mask(unsigned int mask,
66                             const char* fmt, va_list vl);
67 extern void sendto_op_mask(unsigned int mask, const char* fmt, ...);
68 extern void sendbufto_op_mask(unsigned int mask);
69 extern void sendbufto_serv_butone(struct Client *one);
70
71 extern char sendbuf[2048];
72
73 #endif /* INCLUDED_send_h */