File: mod.h

package info (click to toggle)
fragroute 1.2-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 692 kB
  • ctags: 520
  • sloc: ansic: 4,331; sh: 2,842; makefile: 74
file content (27 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (2)
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
/*
 * mod.h
 *
 * Copyright (c) 2001 Dug Song <dugsong@monkey.org>
 *
 * $Id: mod.h,v 1.3 2002/04/07 22:55:20 dugsong Exp $
 */

#ifndef MOD_H
#define MOD_H

#include "pkt.h"

struct mod {
	char	 *name;
	char	 *usage;
	void	*(*open)(int argc, char *argv[]);
	int	 (*apply)(void *data, struct pktq *pktq);
	void	*(*close)(void *data);
};

void	mod_usage(void);
int	mod_open(const char *script);
void	mod_apply(struct pktq *pktq);
void	mod_close(void);

#endif /* MOD_H */