1214501Srpaulo/*
2214501Srpaulo * hostapd / RADIUS Accounting
3214501Srpaulo * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
4214501Srpaulo *
5252726Srpaulo * This software may be distributed under the terms of the BSD license.
6252726Srpaulo * See README for more details.
7214501Srpaulo */
8214501Srpaulo
9214501Srpaulo#ifndef ACCOUNTING_H
10214501Srpaulo#define ACCOUNTING_H
11214501Srpaulo
12214501Srpaulo#ifdef CONFIG_NO_ACCOUNTING
13337817Scystatic inline int accounting_sta_get_id(struct hostapd_data *hapd,
14337817Scy					struct sta_info *sta)
15252726Srpaulo{
16337817Scy	return 0;
17252726Srpaulo}
18252726Srpaulo
19214501Srpaulostatic inline void accounting_sta_start(struct hostapd_data *hapd,
20214501Srpaulo					struct sta_info *sta)
21214501Srpaulo{
22214501Srpaulo}
23214501Srpaulo
24214501Srpaulostatic inline void accounting_sta_stop(struct hostapd_data *hapd,
25214501Srpaulo				       struct sta_info *sta)
26214501Srpaulo{
27214501Srpaulo}
28214501Srpaulo
29214501Srpaulostatic inline int accounting_init(struct hostapd_data *hapd)
30214501Srpaulo{
31214501Srpaulo	return 0;
32214501Srpaulo}
33214501Srpaulo
34214501Srpaulostatic inline void accounting_deinit(struct hostapd_data *hapd)
35214501Srpaulo{
36214501Srpaulo}
37214501Srpaulo#else /* CONFIG_NO_ACCOUNTING */
38337817Scyint accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
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