blob: 797e24d7246445bc1e190514051958f2deddd8dd [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
12void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
13#ifdef CONFIG_NO_ACCOUNTING
14static inline void accounting_sta_start(struct hostapd_data *hapd,
15 struct sta_info *sta)
16{
17}
18
19static inline void accounting_sta_stop(struct hostapd_data *hapd,
20 struct sta_info *sta)
21{
22}
23
24static inline int accounting_init(struct hostapd_data *hapd)
25{
26 return 0;
27}
28
29static inline void accounting_deinit(struct hostapd_data *hapd)
30{
31}
32#else /* CONFIG_NO_ACCOUNTING */
33void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
34void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
35int accounting_init(struct hostapd_data *hapd);
36void accounting_deinit(struct hostapd_data *hapd);
37#endif /* CONFIG_NO_ACCOUNTING */
38
39#endif /* ACCOUNTING_H */