1161200Ssam/*-
2174245Ssam * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
3161200Ssam * All rights reserved.
4161200Ssam *
5161200Ssam * Redistribution and use in source and binary forms, with or without
6161200Ssam * modification, are permitted provided that the following conditions
7161200Ssam * are met:
8161200Ssam * 1. Redistributions of source code must retain the above copyright
9161200Ssam *    notice, this list of conditions and the following disclaimer,
10161200Ssam *    without modification.
11161200Ssam * 2. Redistributions in binary form must reproduce at minimum a disclaimer
12161200Ssam *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13161200Ssam *    redistribution must be conditioned upon including a substantially
14161200Ssam *    similar Disclaimer requirement for further binary redistribution.
15161200Ssam *
16161200Ssam * NO WARRANTY
17161200Ssam * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18161200Ssam * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19161200Ssam * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
20161200Ssam * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21161200Ssam * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22161200Ssam * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23161200Ssam * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24161200Ssam * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25161200Ssam * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26161200Ssam * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27161200Ssam * THE POSSIBILITY OF SUCH DAMAGES.
28161200Ssam *
29161200Ssam * $FreeBSD$
30161200Ssam */
31161200Ssam
32161200Ssam#ifndef _ATHSTATS_H_
33161200Ssam#define	_ATHSTATS_H_
34161200Ssam
35161200Ssam#include "statfoo.h"
36161200Ssam
37161200Ssam/*
38161200Ssam * ath statistics class.
39161200Ssam */
40161200Ssamstruct athstatfoo {
41161200Ssam	struct statfoo base;
42161200Ssam
43161200Ssam	STATFOO_DECL_METHODS(struct athstatfoo *);
44161200Ssam
45161200Ssam	/* set the network interface name for collection */
46161200Ssam	void (*setifname)(struct athstatfoo *, const char *ifname);
47161200Ssam	/* set the mac address of the associated station/ap */
48161200Ssam	void (*setstamac)(struct athstatfoo *, const uint8_t mac[]);
49188560Ssam	/* zero in-kernel statistics */
50188560Ssam	void (*zerostats)(struct athstatfoo *);
51161200Ssam};
52161200Ssam
53161200Ssamstruct athstatfoo *athstats_new(const char *ifname, const char *fmtstring);
54161200Ssam#endif /* _ATHSTATS_H_ */
55