ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/send.h
Revision: 7668
Committed: Wed Jul 20 17:09:49 2016 UTC (9 years, 1 month ago) by michael
Content type: text/x-chdr
File size: 3272 byte(s)
Log Message:
- Fixed svn properties

File Contents

# User Rev Content
1 adx 30 /*
2 michael 2865 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 adx 30 *
4 michael 7006 * Copyright (c) 1997-2016 ircd-hybrid development team
5 adx 30 *
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
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18 michael 4565 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 adx 30 * USA
20     */
21    
22 michael 2865 /*! \file send.h
23     * \brief A header for the message sending functions.
24     * \version $Id$
25     */
26    
27 adx 30 #ifndef INCLUDED_send_h
28     #define INCLUDED_send_h
29    
30     #include "fdlist.h"
31 michael 3109 #include "numeric.h"
32 adx 30
33 michael 2921 enum
34     {
35 michael 2867 L_ALL = 0,
36     L_OPER = 1,
37     L_ADMIN = 2
38     };
39 michael 1798
40 michael 2867 enum
41     {
42     SEND_NOTICE = 1,
43     SEND_GLOBAL = 2,
44     SEND_LOCOPS = 3
45     };
46 michael 1798
47 michael 3844 /* Used when sending to $#mask or $$mask */
48 michael 2867 enum
49     {
50     MATCH_SERVER = 1,
51     MATCH_HOST = 2
52     };
53 michael 1798
54 adx 30 /*
55     * struct decls
56     */
57     struct Channel;
58     struct Client;
59    
60     /* send.c prototypes */
61 michael 4461 extern void sendq_unblocked(fde_t *, void *);
62 adx 30 extern void send_queued_write(struct Client *);
63     extern void send_queued_all(void);
64 michael 1761 extern void sendto_one(struct Client *, const char *, ...) AFP(2,3);
65 michael 7322 extern void sendto_one_numeric(struct Client *, const struct Client *, enum irc_numerics, ...);
66     extern void sendto_one_notice(struct Client *, const struct Client *, const char *, ...) AFP(3,4);
67     extern void sendto_channel_butone(struct Client *, const struct Client *,
68 michael 1479 struct Channel *, unsigned int,
69 michael 1761 const char *, ...) AFP(5,6);
70 michael 6774 extern void sendto_common_channels_local(struct Client *, int, unsigned int, unsigned int,
71     const char *, ...) AFP(5,6);
72 michael 6759 extern void sendto_channel_local(const struct Client *, struct Channel *, unsigned int,
73     unsigned int, unsigned int, const char *, ...) AFP(6,7);
74 michael 7322 extern void sendto_server(const struct Client *, const unsigned int,
75 michael 1761 const unsigned int, const char *, ...) AFP(4,5);
76 michael 7322 extern void sendto_match_butone(const struct Client *, const struct Client *,
77 michael 3170 const char *, int, const char *, ...) AFP(5,6);
78 michael 7322 extern void sendto_match_servs(const struct Client *, const char *, unsigned int,
79 michael 1761 const char *, ...) AFP(4,5);
80 michael 1618 extern void sendto_realops_flags(unsigned int, int, int,
81 michael 1761 const char *, ...) AFP(4,5);
82 michael 7322 extern void sendto_wallops_flags(unsigned int, const struct Client *,
83 michael 1761 const char *, ...) AFP(3,4);
84 michael 7330 extern void sendto_realops_flags_ratelimited(uintmax_t *, const char *, ...) AFP(2,3);
85 adx 30
86 michael 7322 extern void sendto_anywhere(struct Client *, const struct Client *,
87 michael 2793 const char *,
88     const char *, ...) AFP(4,5);
89 adx 30 #endif /* INCLUDED_send_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id