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 2958 by michael, Tue Jan 28 17:05:51 2014 UTC

# Line 1 | Line 1
1   /*
2 < *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 < *  send.h: A header for the message sending functions.
2 > *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (C) 2002 by the past and present ircd coders, and others.
4 > *  Copyright (c) 1997-2014 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 18 | Line 17
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   *  USA
20 < *
21 < *  $Id$
20 > */
21 >
22 > /*! \file send.h
23 > * \brief A header for the message sending functions.
24 > * \version $Id$
25   */
26  
27   #ifndef INCLUDED_send_h
# Line 27 | Line 29
29  
30   #include "fdlist.h"
31  
32 < /* For those unfamiliar with GNU format attributes, a is the 1 based
33 < * argument number of the format string, and b is the 1 based argument
34 < * number of the variadic ... */
35 < #if 0 /* __GNUC__ */
36 < #define AFP(a,b) __attribute__((format (printf, a, b)))
37 < #else
38 < #define AFP(a,b)
39 < #endif
32 > enum { NOCAPS = 0 };
33 >
34 > enum
35 > {
36 >  ALL_MEMBERS         = 0,
37 >  NON_CHANOPS         = 1,
38 >  ONLY_CHANOPS_VOICED = 2,
39 >  ONLY_CHANOPS        = 3,
40 >  ONLY_SERVERS        = 4
41 > };
42 >
43 > enum
44 > {
45 >  L_ALL   = 0,
46 >  L_OPER  = 1,
47 >  L_ADMIN = 2
48 > };
49 >
50 > enum
51 > {
52 >  SEND_NOTICE = 1,
53 >  SEND_GLOBAL = 2,
54 >  SEND_LOCOPS = 3
55 > };
56 >
57 > /* used when sending to #mask or $mask */
58 > enum
59 > {
60 >  MATCH_SERVER = 1,
61 >  MATCH_HOST   = 2
62 > };
63  
64   /*
65   * struct decls
66   */
42 struct Callback;
67   struct Channel;
68   struct Client;
45 struct dlink_list;
46
47 extern struct Callback *iosend_cb;
48 extern struct Callback *iosendctrl_cb;
69  
70   /* send.c prototypes */
51
71   extern void sendq_unblocked(fde_t *, struct Client *);
72   extern void send_queued_write(struct Client *);
54 extern void send_queued_slink_write(struct Client *);
73   extern void send_queued_all(void);
74 < extern void sendto_one(struct Client *, const char *, ...) AFP(2, 3);
74 > extern void sendto_one(struct Client *, const char *, ...) AFP(2,3);
75   extern void sendto_channel_butone(struct Client *, struct Client *,
76 <                                  struct Channel *, const char *,
77 <                                  const char *, ...) AFP(5, 6);
78 < extern void sendto_common_channels_local(struct Client *, int,
79 <                                         const char *, ...) AFP(3, 4);
80 < extern void sendto_channel_local(int, int, struct Channel *,
81 <                                 const char *, ...) AFP(4, 5);
82 < extern void sendto_channel_local_butone(struct Client *, int, struct Channel *,
83 <                                        const char *, ...) AFP(4, 5);
84 < extern void sendto_channel_remote(struct Client *, struct Client *, int,
85 <                                  int, int, struct Channel *,
86 <                                  const char *, ...) AFP(7, 8);
87 < extern void sendto_server(struct Client *, struct Client *,
88 <                          struct Channel *, unsigned long,
89 <                          unsigned long, unsigned long,
90 <                          const char *, ...) AFP(7, 8);
91 < extern void sendto_match_butone(struct Client *, struct Client *,
92 <                                char *, int, const char *, ...) AFP(5, 6);
75 < extern void sendto_match_servs(struct Client *, const char *, int,
76 <                               const char *, ...) AFP(4, 5);
77 < extern void sendto_realops_flags(unsigned int, int,
78 <                                 const char *, ...) AFP(3, 4);
76 >                                  struct Channel *, unsigned int,
77 >                                  const char *, ...) AFP(5,6);
78 > extern void sendto_common_channels_local(struct Client *, int, unsigned int,
79 >                                         const char *, ...) AFP(4,5);
80 > extern void sendto_channel_local(unsigned int, int, struct Channel *,
81 >                                 const char *, ...) AFP(4,5);
82 > extern void sendto_channel_local_butone(struct Client *, unsigned int, unsigned int, struct Channel *,
83 >                                        const char *, ...) AFP(5,6);
84 > extern void sendto_server(struct Client *,
85 >                          const unsigned int,
86 >                          const unsigned int, const char *, ...) AFP(4,5);
87 > extern void sendto_match_butone(struct Client *, struct Client *,
88 >                                char *, int, const char *, ...) AFP(5,6);
89 > extern void sendto_match_servs(struct Client *, const char *, unsigned int,
90 >                               const char *, ...) AFP(4,5);
91 > extern void sendto_realops_flags(unsigned int, int, int,
92 >                                 const char *, ...) AFP(4,5);
93   extern void sendto_wallops_flags(unsigned int, struct Client *,
94 <                                 const char *, ...) AFP(3, 4);
95 < extern void ts_warn(const char *, ...) AFP(1, 2);
94 >                                 const char *, ...) AFP(3,4);
95 > extern void ts_warn(const char *, ...) AFP(1,2);
96  
97 < extern void sendto_anywhere(struct Client *, struct Client *,
98 <                            const char *, ...) AFP(3, 4);
97 > extern void sendto_anywhere(struct Client *, struct Client *,
98 >                            const char *,
99 >                            const char *, ...) AFP(4,5);
100   extern void kill_client(struct Client *, struct Client *,
101 <                        const char *, ... ) AFP(3, 4);
102 < extern void kill_client_ll_serv_butone(struct Client *, struct Client *,
103 <                                       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 <
101 >                        const char *, ... ) AFP(3,4);
102 > extern void kill_client_serv_butone(struct Client *, struct Client *,
103 >                                    const char *, ...) AFP(3,4);
104   #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 2958 by michael, Tue Jan 28 17:05:51 2014 UTC

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

Diff Legend

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