Debian Codegraph @

rplayd/host.h

raw symbols SCIP
1 /* $Id: host.h,v 1.3 1999/03/10 07:58:03 boyns Exp $ */
2
3 /*
4 * Copyright (C) 1993-99 Mark R. Boyns <[email protected]>
5 *
6 * This file is part of rplay.
7 *
8 * rplay is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * rplay is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with rplay; see the file COPYING. If not, write to the
20 * Free Software Foundation, Inc.,
21 * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22 */
23
24
25
26 #ifndef _host_h
27 #define _host_h
28
29 #ifdef HAVE_CONFIG_H
30 #include "config.h"
31 #endif
32 #include "buffer.h"
33
34 #ifdef AUTH
35
36 #define HOST_EXPR_SIZE 1024
37 #define HOST_READ 'r'
38 #define HOST_WRITE 'w'
39 #define HOST_EXECUTE 'x'
40 #define HOST_MONITOR 'm'
41 #define HOST_DEFAULT_ACCESS "rx"
42
43 extern BUFFER *host_list;
44
45 #ifdef __STDC__
46 extern void host_read (char *filename);
47 extern void host_reread (char *filename);
48 extern void host_stat (char *filename);
49 extern char *host_ip_to_regex (char *ip_addr);
50 extern int host_access (struct sockaddr_in sin, char access_mode);
51 extern void host_insert (char *expr_read, char *expr_write, char *expr_execute,
52 char *expr_monitor, char *name, char *perms);
53 #else
54 extern void host_read ( /* char *filename */ );
55 extern void host_reread ( /* char *filename */ );
56 extern void host_stat ( /* char *filename */ );
57 extern char *host_ip_to_regex ( /* char *ip_addr */ );
58 extern int host_access ( /* struct sockaddr_in sin, char access_mode */ );
59 extern void host_insert ();
60 #endif
61
62 #endif /* AUTH */
63
64 #endif /* _host_h */