ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/send.h
Revision: 1206
Committed: Wed Aug 24 21:41:23 2011 UTC (14 years ago) by michael
Content type: text/x-chdr
Original Path: ircd-hybrid-8/include/send.h
File size: 3825 byte(s)
Log Message:
- Implement GLOBOPS
- remove debugging code from parse.c

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     /*
31     * struct decls
32     */
33     struct Callback;
34     struct Channel;
35     struct Client;
36     struct dlink_list;
37    
38 adx 163 extern void *iosend_default(va_list);
39 adx 30 extern struct Callback *iosend_cb;
40     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 *);
46     extern void send_queued_slink_write(struct Client *);
47     extern void send_queued_all(void);
48 michael 1015 extern void sendto_one(struct Client *, const char *, ...);
49 adx 30 extern void sendto_channel_butone(struct Client *, struct Client *,
50     struct Channel *, const char *,
51 michael 1015 const char *, ...);
52 adx 30 extern void sendto_common_channels_local(struct Client *, int,
53 michael 1015 const char *, ...);
54 adx 30 extern void sendto_channel_local(int, int, struct Channel *,
55 michael 1015 const char *, ...);
56 adx 30 extern void sendto_channel_local_butone(struct Client *, int, struct Channel *,
57 michael 1015 const char *, ...);
58 adx 30 extern void sendto_channel_remote(struct Client *, struct Client *, int,
59 michael 1015 const unsigned int, const unsigned int,
60     struct Channel *, const char *, ...);
61     extern void sendto_server(struct Client *, const struct Channel *,
62     const unsigned int,
63     const unsigned int, const char *, ...);
64 adx 30 extern void sendto_match_butone(struct Client *, struct Client *,
65 michael 1015 char *, int, const char *, ...);
66 adx 30 extern void sendto_match_servs(struct Client *, const char *, int,
67 michael 1015 const char *, ...);
68 adx 30 extern void sendto_realops_flags(unsigned int, int,
69 michael 1015 const char *, ...);
70 michael 1206 extern void sendto_globops_flags(unsigned int, int, const char *, ...);
71 adx 30 extern void sendto_wallops_flags(unsigned int, struct Client *,
72 michael 1015 const char *, ...);
73     extern void ts_warn(const char *, ...);
74 adx 30
75     extern void sendto_anywhere(struct Client *, struct Client *,
76 michael 1015 const char *, ...);
77 adx 30 extern void kill_client(struct Client *, struct Client *,
78 michael 1015 const char *, ... );
79 adx 30 extern void kill_client_ll_serv_butone(struct Client *, struct Client *,
80 michael 1015 const char *, ...);
81 adx 30
82    
83     #define ALL_MEMBERS 0
84     #define NON_CHANOPS 1
85     #define ONLY_CHANOPS_VOICED 2
86     #define ONLY_CHANOPS 3
87     #define ONLY_SERVERS 4 /* for channel_mode.c */
88    
89     #define L_ALL 0
90     #define L_OPER 1
91     #define L_ADMIN 2
92    
93     #define NOCAPS 0 /* no caps */
94     #define NOFLAGS 0 /* no flags */
95    
96     /* used when sending to #mask or $mask */
97     #define MATCH_SERVER 1
98     #define MATCH_HOST 2
99    
100     #endif /* INCLUDED_send_h */

Properties

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