blob: 9d13d011cdd857b701d28ed9260111bbd6bdbfff [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * hostapd / RADIUS Accounting
3 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef ACCOUNTING_H
10#define ACCOUNTING_H
11
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070012#ifdef CONFIG_NO_ACCOUNTING
13static inline void accounting_sta_start(struct hostapd_data *hapd,
14 struct sta_info *sta)
15{
16}
17
18static inline void accounting_sta_stop(struct hostapd_data *hapd,
19 struct sta_info *sta)
20{
21}
22
23static inline int accounting_init(struct hostapd_data *hapd)
24{
25 return 0;
26}
27
28static inline void accounting_deinit(struct hostapd_data *hapd)
29{
30}
31#else /* CONFIG_NO_ACCOUNTING */
32void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
33void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
34int accounting_init(struct hostapd_data *hapd);
35void accounting_deinit(struct hostapd_data *hapd);
36#endif /* CONFIG_NO_ACCOUNTING */
37
38#endif /* ACCOUNTING_H */