• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * hostapd / RADIUS Accounting
3  * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef ACCOUNTING_H
10 #define ACCOUNTING_H
11 
12 #ifdef CONFIG_NO_ACCOUNTING
accounting_sta_start(struct hostapd_data * hapd,struct sta_info * sta)13 static inline void accounting_sta_start(struct hostapd_data *hapd,
14 					struct sta_info *sta)
15 {
16 }
17 
accounting_sta_stop(struct hostapd_data * hapd,struct sta_info * sta)18 static inline void accounting_sta_stop(struct hostapd_data *hapd,
19 				       struct sta_info *sta)
20 {
21 }
22 
accounting_init(struct hostapd_data * hapd)23 static inline int accounting_init(struct hostapd_data *hapd)
24 {
25 	return 0;
26 }
27 
accounting_deinit(struct hostapd_data * hapd)28 static inline void accounting_deinit(struct hostapd_data *hapd)
29 {
30 }
31 #else /* CONFIG_NO_ACCOUNTING */
32 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
33 void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
34 int accounting_init(struct hostapd_data *hapd);
35 void accounting_deinit(struct hostapd_data *hapd);
36 #endif /* CONFIG_NO_ACCOUNTING */
37 
38 #endif /* ACCOUNTING_H */
39