ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/send.h
Revision: 2565
Committed: Sun Nov 17 18:40:26 2013 UTC (11 years, 9 months ago) by michael
Content type: text/x-chdr
File size: 3790 byte(s)
Log Message:
- Renamed kill_client_ll_serv_butone() to kill_client_serv_butone() just to satisfy Adam's OCD

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * send.h: A header for the message sending functions.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_send_h
26     #define INCLUDED_send_h
27    
28     #include "fdlist.h"
29    
30 michael 1798 #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 michael 1761
36 michael 1798 #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 adx 30 /*
53     * struct decls
54     */
55     struct Channel;
56     struct Client;
57    
58     /* send.c prototypes */
59     extern void sendq_unblocked(fde_t *, struct Client *);
60     extern void send_queued_write(struct Client *);
61     extern void send_queued_all(void);
62 michael 1761 extern void sendto_one(struct Client *, const char *, ...) AFP(2,3);
63 adx 30 extern void sendto_channel_butone(struct Client *, struct Client *,
64 michael 1479 struct Channel *, unsigned int,
65 michael 1761 const char *, ...) AFP(5,6);
66 michael 1734 extern void sendto_common_channels_local(struct Client *, int, unsigned int,
67 michael 1761 const char *, ...) AFP(4,5);
68 michael 2543 extern void sendto_channel_local(unsigned int, int, struct Channel *,
69 michael 1761 const char *, ...) AFP(4,5);
70 michael 2543 extern void sendto_channel_local_butone(struct Client *, unsigned int, unsigned int, struct Channel *,
71 michael 1761 const char *, ...) AFP(5,6);
72 michael 2543 extern void sendto_channel_remote(struct Client *, struct Client *, unsigned int,
73 michael 1015 const unsigned int, const unsigned int,
74 michael 1761 struct Channel *, const char *, ...) AFP(7,8);
75 michael 1474 extern void sendto_server(struct Client *,
76 michael 1015 const unsigned int,
77 michael 1761 const unsigned int, const char *, ...) AFP(4,5);
78 adx 30 extern void sendto_match_butone(struct Client *, struct Client *,
79 michael 1761 char *, int, const char *, ...) AFP(5,6);
80 michael 2543 extern void sendto_match_servs(struct Client *, const char *, unsigned int,
81 michael 1761 const char *, ...) AFP(4,5);
82 michael 1618 extern void sendto_realops_flags(unsigned int, int, int,
83 michael 1761 const char *, ...) AFP(4,5);
84 adx 30 extern void sendto_wallops_flags(unsigned int, struct Client *,
85 michael 1761 const char *, ...) AFP(3,4);
86     extern void ts_warn(const char *, ...) AFP(1,2);
87 adx 30
88     extern void sendto_anywhere(struct Client *, struct Client *,
89 michael 1761 const char *, ...) AFP(3,4);
90 adx 30 extern void kill_client(struct Client *, struct Client *,
91 michael 1761 const char *, ... ) AFP(3,4);
92 michael 2565 extern void kill_client_serv_butone(struct Client *, struct Client *,
93     const char *, ...) AFP(3,4);
94 adx 30 #endif /* INCLUDED_send_h */

Properties

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