File: send.h

package info (click to toggle)
dancer-ircd 1.0.31%2Bmaint8-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,884 kB
  • ctags: 2,640
  • sloc: ansic: 34,280; sh: 3,145; perl: 434; makefile: 320
file content (108 lines) | stat: -rw-r--r-- 4,360 bytes parent folder | download
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
 * send.h
 * Copyright (C) 1999 Patrick Alken
 *
 * $Id: send.h,v 1.1.1.1.2.3 2001/11/06 13:20:16 asuffield Exp $
 */

#ifndef INCLUDED_send_h
#define INCLUDED_send_h
#ifndef INCLUDED_config_h
#include "config.h"       /* HAVE_STDARG_H */
#endif

/*
 * struct decls
 */
struct Client;
struct Channel;

#if defined(NO_PRINTF_CHECK) || ! defined (HAVE_ATTRIBUTE)
#define __attribute__(X)
#endif

/* send.c prototypes */

extern  void send_operwall(struct Client *, const char *, const char *);
extern  void sendto_channel_type_notice(struct Client *, 
                                        struct Channel *, int, const char *);
extern  int sendto_slaves(struct Client *, const char *, const char *, int, char **);

extern  void sendto_one(struct Client *, const char *, ...)
     __attribute__((format(printf,2,3)));
extern  void sendto_channel_butone(struct Client *, struct Client *, 
                                   struct Channel *, const char *, ...)
     __attribute__((format(printf,4,5)));
extern  void sendto_channel_type(struct Client *,
                                 struct Client *, 
                                 struct Channel *,
                                 int type,
                                 const char *nick,
                                 const char *cmd,
                                 const char *message);
extern  void sendto_serv_butone(struct Client *, const char *, ...)
     __attribute__((format(printf,2,3)));
extern  void sendto_common_channels(struct Client *, const char *, ...)
     __attribute__((format(printf,2,3)));
extern  void sendto_channel_butserv(struct Channel *, struct Client *, 
                                    const char *, ...)
     __attribute__((format(printf,3,4)));

extern  void sendto_channel_chanops_butserv(struct Channel *chptr,
					    struct Client *from, 
					    const char *pattern, ...)
     __attribute__((format(printf,3,4)));

extern  void sendto_channel_non_chanops_butserv(struct Channel *chptr,
						struct Client *from, 
						const char *pattern, ...)
     __attribute__((format(printf,3,4)));

extern  void sendto_match_servs(struct Channel *, struct Client *, 
                                const char *, ...)
     __attribute__((format(printf,3,4)));
extern  void sendto_match_cap_servs(struct Channel *, struct Client *, 
                                    int, const char *, ...)
     __attribute__((format(printf,4,5)));
extern  void sendto_match_butone(struct Client *, struct Client *, 
                                 char *, int, const char *, ...)
     __attribute__((format(printf,5,6)));

extern  void sendto_wallops_butone(struct Client *, struct Client *, 
                                   const char *, ...)
     __attribute__((format(printf,3,4)));
extern  void ts_warn(const char *, ...)
     __attribute__((format(printf,1,2)));

extern  void sendto_prefix_one(struct Client *, struct Client *, 
                               const char *, ...)
     __attribute__((format(printf,3,4)));

extern  void    flush_server_connections(void);
extern void flush_connections(struct Client* cptr);

/* used when sending to #mask or $mask */

#define MATCH_SERVER  1
#define MATCH_HOST    2

extern  void sendto_ops_flag(int, const char *, ...)
     __attribute__((format(printf,2,3)));
extern  void sendto_ops_flag_butone(struct Client *, int, const char *, ...)
     __attribute__((format(printf,3,4)));
extern  void sendto_ops_flag_butflag(int, int, const char *, ...)
     __attribute__((format(printf,3,4)));
extern  void sendto_ops_flag_butflag_butone(struct Client *, int, int, const char *, ...)
     __attribute__((format(printf,4,5)));
extern  void sendto_ops_flag_butflag_butone_from(struct Client *, int, int, struct Client*, const char *, ...)
     __attribute__((format(printf,5,6)));
extern  void sendto_ops_flag_butflag_butone_hidefrom(struct Client *, int, int, const char *, ...)
     __attribute__((format(printf,4,5)));
extern  void sendto_local_ops_flag(int, const char*, ...)
     __attribute__((format(printf,2,3)));
extern  void sendto_local_ops_flag_butone(struct Client *, int, const char *, ...)
     __attribute__((format(printf,3,4)));
extern  void sendto_local_ops_flag_butone_from(struct Client *, int, struct Client*, const char *, ...)
     __attribute__((format(printf,4,5)));

#endif /* INCLUDED_send_h */