27 |
|
|
28 |
|
#include "fdlist.h" |
29 |
|
|
30 |
+ |
#define ALL_MEMBERS 0 |
31 |
+ |
#define NON_CHANOPS 1 |
32 |
+ |
#define ONLY_CHANOPS_VOICED 2 |
33 |
+ |
#define ONLY_CHANOPS 3 |
34 |
+ |
#define ONLY_SERVERS 4 /* for channel_mode.c */ |
35 |
+ |
|
36 |
+ |
#define L_ALL 0 |
37 |
+ |
#define L_OPER 1 |
38 |
+ |
#define L_ADMIN 2 |
39 |
+ |
|
40 |
+ |
#define SEND_NOTICE 1 |
41 |
+ |
#define SEND_GLOBAL 2 |
42 |
+ |
#define SEND_LOCOPS 3 |
43 |
+ |
|
44 |
+ |
#define NOCAPS 0 /* no caps */ |
45 |
+ |
#define NOFLAGS 0 /* no flags */ |
46 |
+ |
|
47 |
+ |
/* used when sending to #mask or $mask */ |
48 |
+ |
#define MATCH_SERVER 1 |
49 |
+ |
#define MATCH_HOST 2 |
50 |
+ |
|
51 |
+ |
|
52 |
|
/* |
53 |
|
* struct decls |
54 |
|
*/ |
33 |
– |
struct Callback; |
55 |
|
struct Channel; |
56 |
|
struct Client; |
36 |
– |
struct dlink_list; |
37 |
– |
|
38 |
– |
extern void *iosend_default(va_list); |
39 |
– |
extern struct Callback *iosend_cb; |
40 |
– |
extern struct Callback *iosendctrl_cb; |
57 |
|
|
58 |
|
/* send.c prototypes */ |
43 |
– |
|
59 |
|
extern void sendq_unblocked(fde_t *, struct Client *); |
60 |
|
extern void send_queued_write(struct Client *); |
46 |
– |
extern void send_queued_slink_write(struct Client *); |
61 |
|
extern void send_queued_all(void); |
62 |
< |
extern void sendto_one(struct Client *, const char *, ...); |
62 |
> |
extern void sendto_one(struct Client *, const char *, ...) AFP(2,3); |
63 |
|
extern void sendto_channel_butone(struct Client *, struct Client *, |
64 |
< |
struct Channel *, const char *, |
65 |
< |
const char *, ...); |
66 |
< |
extern void sendto_common_channels_local(struct Client *, int, |
67 |
< |
const char *, ...); |
68 |
< |
extern void sendto_channel_local(int, int, struct Channel *, |
69 |
< |
const char *, ...); |
70 |
< |
extern void sendto_channel_local_butone(struct Client *, int, struct Channel *, |
71 |
< |
const char *, ...); |
72 |
< |
extern void sendto_channel_remote(struct Client *, struct Client *, int, |
64 |
> |
struct Channel *, unsigned int, |
65 |
> |
const char *, ...) AFP(5,6); |
66 |
> |
extern void sendto_common_channels_local(struct Client *, int, unsigned int, |
67 |
> |
const char *, ...) AFP(4,5); |
68 |
> |
extern void sendto_channel_local(unsigned int, int, struct Channel *, |
69 |
> |
const char *, ...) AFP(4,5); |
70 |
> |
extern void sendto_channel_local_butone(struct Client *, unsigned int, unsigned int, struct Channel *, |
71 |
> |
const char *, ...) AFP(5,6); |
72 |
> |
extern void sendto_channel_remote(struct Client *, struct Client *, unsigned int, |
73 |
|
const unsigned int, const unsigned int, |
74 |
< |
struct Channel *, const char *, ...); |
75 |
< |
extern void sendto_server(struct Client *, const struct Channel *, |
74 |
> |
struct Channel *, const char *, ...) AFP(7,8); |
75 |
> |
extern void sendto_server(struct Client *, |
76 |
|
const unsigned int, |
77 |
< |
const unsigned int, const char *, ...); |
77 |
> |
const unsigned int, const char *, ...) AFP(4,5); |
78 |
|
extern void sendto_match_butone(struct Client *, struct Client *, |
79 |
< |
char *, int, const char *, ...); |
80 |
< |
extern void sendto_match_servs(struct Client *, const char *, int, |
81 |
< |
const char *, ...); |
82 |
< |
extern void sendto_realops_flags(unsigned int, int, |
83 |
< |
const char *, ...); |
70 |
< |
extern void sendto_globops_flags(unsigned int, int, const char *, ...); |
79 |
> |
char *, int, const char *, ...) AFP(5,6); |
80 |
> |
extern void sendto_match_servs(struct Client *, const char *, unsigned int, |
81 |
> |
const char *, ...) AFP(4,5); |
82 |
> |
extern void sendto_realops_flags(unsigned int, int, int, |
83 |
> |
const char *, ...) AFP(4,5); |
84 |
|
extern void sendto_wallops_flags(unsigned int, struct Client *, |
85 |
< |
const char *, ...); |
86 |
< |
extern void ts_warn(const char *, ...); |
85 |
> |
const char *, ...) AFP(3,4); |
86 |
> |
extern void ts_warn(const char *, ...) AFP(1,2); |
87 |
|
|
88 |
|
extern void sendto_anywhere(struct Client *, struct Client *, |
89 |
< |
const char *, ...); |
89 |
> |
const char *, |
90 |
> |
const char *, ...) AFP(4,5); |
91 |
|
extern void kill_client(struct Client *, struct Client *, |
92 |
< |
const char *, ... ); |
93 |
< |
extern void kill_client_ll_serv_butone(struct Client *, struct Client *, |
94 |
< |
const char *, ...); |
81 |
< |
|
82 |
< |
|
83 |
< |
#define ALL_MEMBERS 0 |
84 |
< |
#define NON_CHANOPS 1 |
85 |
< |
#define ONLY_CHANOPS_VOICED 2 |
86 |
< |
#define ONLY_CHANOPS 3 |
87 |
< |
#define ONLY_SERVERS 4 /* for channel_mode.c */ |
88 |
< |
|
89 |
< |
#define L_ALL 0 |
90 |
< |
#define L_OPER 1 |
91 |
< |
#define L_ADMIN 2 |
92 |
< |
|
93 |
< |
#define NOCAPS 0 /* no caps */ |
94 |
< |
#define NOFLAGS 0 /* no flags */ |
95 |
< |
|
96 |
< |
/* used when sending to #mask or $mask */ |
97 |
< |
#define MATCH_SERVER 1 |
98 |
< |
#define MATCH_HOST 2 |
99 |
< |
|
92 |
> |
const char *, ... ) AFP(3,4); |
93 |
> |
extern void kill_client_serv_butone(struct Client *, struct Client *, |
94 |
> |
const char *, ...) AFP(3,4); |
95 |
|
#endif /* INCLUDED_send_h */ |