1193242Ssam/*- 2193242Ssam * Copyright (c) 2007 Sam Leffler, Errno Consulting 3193242Ssam * All rights reserved. 4193242Ssam * 5193242Ssam * Redistribution and use in source and binary forms, with or without 6193242Ssam * modification, are permitted provided that the following conditions 7193242Ssam * are met: 8193242Ssam * 1. Redistributions of source code must retain the above copyright 9193242Ssam * notice, this list of conditions and the following disclaimer, 10193242Ssam * without modification. 11193242Ssam * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12193242Ssam * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 13193242Ssam * redistribution must be conditioned upon including a substantially 14193242Ssam * similar Disclaimer requirement for further binary redistribution. 15193242Ssam * 16193242Ssam * NO WARRANTY 17193242Ssam * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18193242Ssam * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19193242Ssam * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 20193242Ssam * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 21193242Ssam * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22193242Ssam * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23193242Ssam * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24193242Ssam * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25193242Ssam * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26193242Ssam * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27193242Ssam * THE POSSIBILITY OF SUCH DAMAGES. 28193242Ssam * 29193242Ssam * $FreeBSD$ 30193242Ssam */ 31193242Ssam 32193242Ssam#ifndef _MWLSTATS_H_ 33193242Ssam#define _MWLSTATS_H_ 34193242Ssam 35193242Ssam#include "statfoo.h" 36193242Ssam 37193242Ssam/* 38193242Ssam * mv statistics class. 39193242Ssam */ 40193242Ssamstruct mwlstatfoo { 41193242Ssam struct statfoo base; 42193242Ssam 43193242Ssam STATFOO_DECL_METHODS(struct mwlstatfoo *); 44193242Ssam 45193242Ssam /* set the network interface name for collection */ 46193242Ssam void (*setifname)(struct mwlstatfoo *, const char *ifname); 47193242Ssam /* set the mac address of the associated station/ap */ 48193242Ssam void (*setstamac)(struct mwlstatfoo *, const uint8_t mac[]); 49193242Ssam}; 50193242Ssam 51193242Ssamstruct mwlstatfoo *mwlstats_new(const char *ifname, const char *fmtstring); 52193242Ssam#endif /* _MWLSTATS_H_ */ 53