1214501Srpaulo/*
2214501Srpaulo * hostapd / RADIUS Accounting
3214501Srpaulo * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
4214501Srpaulo *
5214501Srpaulo * This program is free software; you can redistribute it and/or modify
6214501Srpaulo * it under the terms of the GNU General Public License version 2 as
7214501Srpaulo * published by the Free Software Foundation.
8214501Srpaulo *
9214501Srpaulo * Alternatively, this software may be distributed under the terms of BSD
10214501Srpaulo * license.
11214501Srpaulo *
12214501Srpaulo * See README and COPYING for more details.
13214501Srpaulo */
14214501Srpaulo
15214501Srpaulo#ifndef ACCOUNTING_H
16214501Srpaulo#define ACCOUNTING_H
17214501Srpaulo
18214501Srpaulovoid accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
19214501Srpaulo#ifdef CONFIG_NO_ACCOUNTING
20214501Srpaulostatic inline void accounting_sta_start(struct hostapd_data *hapd,
21214501Srpaulo					struct sta_info *sta)
22214501Srpaulo{
23214501Srpaulo}
24214501Srpaulo
25214501Srpaulostatic inline void accounting_sta_stop(struct hostapd_data *hapd,
26214501Srpaulo				       struct sta_info *sta)
27214501Srpaulo{
28214501Srpaulo}
29214501Srpaulo
30214501Srpaulostatic inline int accounting_init(struct hostapd_data *hapd)
31214501Srpaulo{
32214501Srpaulo	return 0;
33214501Srpaulo}
34214501Srpaulo
35214501Srpaulostatic inline void accounting_deinit(struct hostapd_data *hapd)
36214501Srpaulo{
37214501Srpaulo}
38214501Srpaulo#else /* CONFIG_NO_ACCOUNTING */
39214501Srpaulovoid accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
40214501Srpaulovoid accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
41214501Srpauloint accounting_init(struct hostapd_data *hapd);
42214501Srpaulovoid accounting_deinit(struct hostapd_data *hapd);
43214501Srpaulo#endif /* CONFIG_NO_ACCOUNTING */
44214501Srpaulo
45214501Srpaulo#endif /* ACCOUNTING_H */
46