ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/send.h
(Generate patch)

Comparing:
ircd-hybrid/include/send.h (file contents), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid/trunk/include/send.h (file contents), Revision 2793 by michael, Thu Jan 9 17:38:12 2014 UTC

# Line 27 | Line 27
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 > #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   */
42 struct Callback;
55   struct Channel;
56   struct Client;
45 struct dlink_list;
46
47 extern struct Callback *iosend_cb;
48 extern struct Callback *iosendctrl_cb;
57  
58   /* send.c prototypes */
51
59   extern void sendq_unblocked(fde_t *, struct Client *);
60   extern void send_queued_write(struct Client *);
54 extern void send_queued_slink_write(struct Client *);
61   extern void send_queued_all(void);
62 < extern void sendto_one(struct Client *, const char *, ...) AFP(2, 3);
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 *, ...) AFP(5, 6);
66 < extern void sendto_common_channels_local(struct Client *, int,
67 <                                         const char *, ...) AFP(3, 4);
68 < extern void sendto_channel_local(int, int, struct Channel *,
69 <                                 const char *, ...) AFP(4, 5);
70 < extern void sendto_channel_local_butone(struct Client *, int, struct Channel *,
71 <                                        const char *, ...) AFP(4, 5);
72 < extern void sendto_channel_remote(struct Client *, struct Client *, int,
73 <                                  int, int, struct Channel *,
74 <                                  const char *, ...) AFP(7, 8);
75 < extern void sendto_server(struct Client *, struct Client *,
76 <                          struct Channel *, unsigned long,
77 <                          unsigned long, unsigned long,
72 <                          const char *, ...) AFP(7, 8);
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 *, ...) AFP(7,8);
75 > extern void sendto_server(struct Client *,
76 >                          const unsigned int,
77 >                          const unsigned int, const char *, ...) AFP(4,5);
78   extern void sendto_match_butone(struct Client *, struct Client *,
79 <                                char *, int, const char *, ...) AFP(5, 6);
80 < extern void sendto_match_servs(struct Client *, const char *, int,
81 <                               const char *, ...) AFP(4, 5);
82 < extern void sendto_realops_flags(unsigned int, int,
83 <                                 const char *, ...) AFP(3, 4);
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 *, ...) AFP(3, 4);
86 < extern void ts_warn(const char *, ...) AFP(1, 2);
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 *, ...) AFP(3, 4);
89 >                            const char *,
90 >                            const char *, ...) AFP(4,5);
91   extern void kill_client(struct Client *, struct Client *,
92 <                        const char *, ... ) AFP(3, 4);
93 < extern void kill_client_ll_serv_butone(struct Client *, struct Client *,
94 <                                       const char *, ...) AFP(3, 4);
89 <
90 <
91 < #define ALL_MEMBERS  0
92 < #define NON_CHANOPS  1
93 < #define ONLY_CHANOPS_VOICED  2
94 < #define ONLY_CHANOPS 3
95 < #define ONLY_SERVERS 4 /* for channel_mode.c */
96 <
97 < #define L_ALL   0
98 < #define L_OPER  1
99 < #define L_ADMIN 2
100 <
101 < #define NOCAPS          0               /* no caps */
102 < #define NOFLAGS         0               /* no flags */
103 <
104 < #define LL_ICLIENT      0x00000001      /* introduce unknown clients */
105 < #define LL_ICHAN        0x00000002      /* introduce unknown chans */
106 <
107 < /* used when sending to #mask or $mask */
108 < #define MATCH_SERVER  1
109 < #define MATCH_HOST    2
110 <
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 */

Comparing:
ircd-hybrid/include/send.h (property svn:keywords), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid/trunk/include/send.h (property svn:keywords), Revision 2793 by michael, Thu Jan 9 17:38:12 2014 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)