ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/include/s_user.h
Revision: 2429
Committed: Wed Jul 31 16:43:22 2013 UTC (10 years, 8 months ago) by michael
Content type: text/x-chdr
File size: 2438 byte(s)
Log Message:
- ioengine changes as of 31JUL13

File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * s_user.h: A header for the user 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 * $Id$
23 */
24
25 #ifndef INCLUDED_s_user_h
26 #define INCLUDED_s_user_h
27
28 #define IRC_MAXSID 3
29 #define IRC_MAXUID 6
30 #define TOTALSIDUID (IRC_MAXSID + IRC_MAXUID)
31
32 struct Client;
33 struct MsgBuf;
34
35 typedef void (*InfoFormatter)(struct Client *, struct Client *, struct MsgBuf *);
36
37 extern const unsigned int user_modes[];
38
39 extern void assemble_umode_buffer(void);
40 extern void set_user_mode(struct Client *, struct Client *, const int, char *[]);
41 extern void send_umode(struct Client *, struct Client *,
42 unsigned int, unsigned int, char *);
43 extern void send_umode_out(struct Client *, struct Client *, unsigned int);
44 extern int show_lusers(struct Client *);
45 extern void show_isupport(struct Client *);
46 extern void oper_up(struct Client *);
47
48 extern void send_user_info(struct Client *, char *, int, InfoFormatter);
49 extern int register_local_user(struct Client *);
50 extern int register_remote_user(struct Client *,
51 const char *, const char *,
52 const char *, const char *);
53 extern void init_uid(void);
54 extern int valid_sid(const char *);
55 extern int valid_hostname(const char *);
56 extern int valid_username(const char *, const int);
57 extern int valid_nickname(const char *, const int);
58 extern void add_isupport(const char *, const char *, int);
59 extern void delete_isupport(const char *);
60 extern void init_isupport(void);
61 extern void rebuild_isupport_message_line(void);
62 extern void user_set_hostmask(struct Client *, const char *, const int);
63
64 #endif

Properties

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