File: dl.h

package info (click to toggle)
tirc 1.2-10
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,388 kB
  • ctags: 1,909
  • sloc: ansic: 19,264; sh: 2,671; makefile: 222; awk: 14
file content (53 lines) | stat: -rw-r--r-- 1,258 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*-
 * tirc -- client for the Internet Relay Chat
 *
 *	Copyright (c) 1996, 1997, 1998
 *		Matthias Buelow.  All rights reserved.
 *
 *	See the file ``COPYRIGHT'' for the usage and distribution
 *	license and warranty disclaimer.
 *
 * This is derived from code contributed to TIRC by Richard Corke
 * (rjc@rasi.demon.co.uk).
 *
 * $Id: dl.h,v 1.4 1998/02/20 18:20:26 token Exp $
 */

#ifndef	TIRC_DL_H
#define	TIRC_DL_H	1

#define MAXDLCMDSZ	7

struct dlmodtbl_entry {
	char	*filestr;
	char	*path;
	int	refno;
	void	*dlptr;
	const char *idstring;
	TAILQ_ENTRY(dlmodtbl_entry) dlmodtbl_entries;
};

struct dlcmdtbl_entry {
	char		*c_str;
	unsigned long	c_hash;
	void 		(*c_fun) __P((int, char *));
	unsigned	c_flags;
	char		*c_help;
	char		*c_func;
	struct dlmodtbl_entry	*dme;
	TAILQ_ENTRY(dlcmdtbl_entry) dlcmdtbl_entries;
};

void	dlinit __P((void));
void	dlmodcmd __P((int, char *));
int	dlopencmd __P((char *));
int	dlcaddcmd __P((char *, char *, struct dlmodtbl_entry *, char *,
								unsigned));
void	dlinfocmd __P((struct dlmodtbl_entry *));
void	dlhelpcmd __P((char *));
void	dlcmdlistcmd __P((void));
int	dlcdelcmd __P((char *));
int	dlclosecmd __P((struct dlmodtbl_entry *));
int	dlfuncrun __P((char *, int, char *));

#endif		/* ! TIRC_DL_H */