| 27 |
|
|
| 28 |
|
#include "fdlist.h" |
| 29 |
|
|
| 30 |
– |
/* For those unfamiliar with GNU format attributes, a is the 1 based |
| 31 |
– |
* argument number of the format string, and b is the 1 based argument |
| 32 |
– |
* number of the variadic ... */ |
| 33 |
– |
#if 0 /* __GNUC__ */ |
| 34 |
– |
#define AFP(a,b) __attribute__((format (printf, a, b))) |
| 35 |
– |
#else |
| 36 |
– |
#define AFP(a,b) |
| 37 |
– |
#endif |
| 30 |
|
|
| 31 |
|
/* |
| 32 |
|
* struct decls |
| 36 |
|
struct Client; |
| 37 |
|
struct dlink_list; |
| 38 |
|
|
| 39 |
+ |
extern void *iosend_default(va_list); |
| 40 |
|
extern struct Callback *iosend_cb; |
| 48 |
– |
extern struct Callback *iosendctrl_cb; |
| 41 |
|
|
| 42 |
|
/* send.c prototypes */ |
| 43 |
|
|
| 44 |
|
extern void sendq_unblocked(fde_t *, struct Client *); |
| 45 |
|
extern void send_queued_write(struct Client *); |
| 54 |
– |
extern void send_queued_slink_write(struct Client *); |
| 46 |
|
extern void send_queued_all(void); |
| 47 |
< |
extern void sendto_one(struct Client *, const char *, ...) AFP(2, 3); |
| 47 |
> |
extern void sendto_one(struct Client *, const char *, ...) AFP(2,3); |
| 48 |
|
extern void sendto_channel_butone(struct Client *, struct Client *, |
| 49 |
< |
struct Channel *, const char *, |
| 50 |
< |
const char *, ...) AFP(5, 6); |
| 51 |
< |
extern void sendto_common_channels_local(struct Client *, int, |
| 52 |
< |
const char *, ...) AFP(3, 4); |
| 49 |
> |
struct Channel *, unsigned int, |
| 50 |
> |
const char *, ...) AFP(5,6); |
| 51 |
> |
extern void sendto_common_channels_local(struct Client *, int, unsigned int, |
| 52 |
> |
const char *, ...) AFP(4,5); |
| 53 |
|
extern void sendto_channel_local(int, int, struct Channel *, |
| 54 |
< |
const char *, ...) AFP(4, 5); |
| 55 |
< |
extern void sendto_channel_local_butone(struct Client *, int, struct Channel *, |
| 56 |
< |
const char *, ...) AFP(4, 5); |
| 54 |
> |
const char *, ...) AFP(4,5); |
| 55 |
> |
extern void sendto_channel_local_butone(struct Client *, int, unsigned int, struct Channel *, |
| 56 |
> |
const char *, ...) AFP(5,6); |
| 57 |
|
extern void sendto_channel_remote(struct Client *, struct Client *, int, |
| 58 |
< |
int, int, struct Channel *, |
| 59 |
< |
const char *, ...) AFP(7, 8); |
| 60 |
< |
extern void sendto_server(struct Client *, struct Client *, |
| 61 |
< |
struct Channel *, unsigned long, |
| 62 |
< |
unsigned long, unsigned long, |
| 72 |
< |
const char *, ...) AFP(7, 8); |
| 58 |
> |
const unsigned int, const unsigned int, |
| 59 |
> |
struct Channel *, const char *, ...) AFP(7,8); |
| 60 |
> |
extern void sendto_server(struct Client *, |
| 61 |
> |
const unsigned int, |
| 62 |
> |
const unsigned int, const char *, ...) AFP(4,5); |
| 63 |
|
extern void sendto_match_butone(struct Client *, struct Client *, |
| 64 |
< |
char *, int, const char *, ...) AFP(5, 6); |
| 64 |
> |
char *, int, const char *, ...) AFP(5,6); |
| 65 |
|
extern void sendto_match_servs(struct Client *, const char *, int, |
| 66 |
< |
const char *, ...) AFP(4, 5); |
| 67 |
< |
extern void sendto_realops_flags(unsigned int, int, |
| 68 |
< |
const char *, ...) AFP(3, 4); |
| 66 |
> |
const char *, ...) AFP(4,5); |
| 67 |
> |
extern void sendto_realops_flags(unsigned int, int, int, |
| 68 |
> |
const char *, ...) AFP(4,5); |
| 69 |
|
extern void sendto_wallops_flags(unsigned int, struct Client *, |
| 70 |
< |
const char *, ...) AFP(3, 4); |
| 71 |
< |
extern void ts_warn(const char *, ...) AFP(1, 2); |
| 70 |
> |
const char *, ...) AFP(3,4); |
| 71 |
> |
extern void ts_warn(const char *, ...) AFP(1,2); |
| 72 |
|
|
| 73 |
|
extern void sendto_anywhere(struct Client *, struct Client *, |
| 74 |
< |
const char *, ...) AFP(3, 4); |
| 74 |
> |
const char *, ...) AFP(3,4); |
| 75 |
|
extern void kill_client(struct Client *, struct Client *, |
| 76 |
< |
const char *, ... ) AFP(3, 4); |
| 76 |
> |
const char *, ... ) AFP(3,4); |
| 77 |
|
extern void kill_client_ll_serv_butone(struct Client *, struct Client *, |
| 78 |
< |
const char *, ...) AFP(3, 4); |
| 78 |
> |
const char *, ...) AFP(3,4); |
| 79 |
|
|
| 80 |
|
|
| 81 |
|
#define ALL_MEMBERS 0 |
| 88 |
|
#define L_OPER 1 |
| 89 |
|
#define L_ADMIN 2 |
| 90 |
|
|
| 91 |
+ |
#define SEND_NOTICE 1 |
| 92 |
+ |
#define SEND_GLOBAL 2 |
| 93 |
+ |
#define SEND_LOCOPS 3 |
| 94 |
+ |
|
| 95 |
|
#define NOCAPS 0 /* no caps */ |
| 96 |
|
#define NOFLAGS 0 /* no flags */ |
| 97 |
|
|
| 104 |
– |
#define LL_ICLIENT 0x00000001 /* introduce unknown clients */ |
| 105 |
– |
#define LL_ICHAN 0x00000002 /* introduce unknown chans */ |
| 106 |
– |
|
| 98 |
|
/* used when sending to #mask or $mask */ |
| 99 |
|
#define MATCH_SERVER 1 |
| 100 |
|
#define MATCH_HOST 2 |