xref: /dflybsd-src/contrib/wpa_supplicant/src/ap/accounting.h (revision 3a84a4273475ed07d0ab1c2dfeffdfedef35d9cd)
13ff40c12SJohn Marino /*
23ff40c12SJohn Marino  * hostapd / RADIUS Accounting
33ff40c12SJohn Marino  * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
43ff40c12SJohn Marino  *
53ff40c12SJohn Marino  * This software may be distributed under the terms of the BSD license.
63ff40c12SJohn Marino  * See README for more details.
73ff40c12SJohn Marino  */
83ff40c12SJohn Marino 
93ff40c12SJohn Marino #ifndef ACCOUNTING_H
103ff40c12SJohn Marino #define ACCOUNTING_H
113ff40c12SJohn Marino 
123ff40c12SJohn Marino #ifdef CONFIG_NO_ACCOUNTING
accounting_sta_get_id(struct hostapd_data * hapd,struct sta_info * sta)13*a1157835SDaniel Fojt static inline int accounting_sta_get_id(struct hostapd_data *hapd,
143ff40c12SJohn Marino 					struct sta_info *sta)
153ff40c12SJohn Marino {
16*a1157835SDaniel Fojt 	return 0;
173ff40c12SJohn Marino }
183ff40c12SJohn Marino 
accounting_sta_start(struct hostapd_data * hapd,struct sta_info * sta)193ff40c12SJohn Marino static inline void accounting_sta_start(struct hostapd_data *hapd,
203ff40c12SJohn Marino 					struct sta_info *sta)
213ff40c12SJohn Marino {
223ff40c12SJohn Marino }
233ff40c12SJohn Marino 
accounting_sta_stop(struct hostapd_data * hapd,struct sta_info * sta)243ff40c12SJohn Marino static inline void accounting_sta_stop(struct hostapd_data *hapd,
253ff40c12SJohn Marino 				       struct sta_info *sta)
263ff40c12SJohn Marino {
273ff40c12SJohn Marino }
283ff40c12SJohn Marino 
accounting_init(struct hostapd_data * hapd)293ff40c12SJohn Marino static inline int accounting_init(struct hostapd_data *hapd)
303ff40c12SJohn Marino {
313ff40c12SJohn Marino 	return 0;
323ff40c12SJohn Marino }
333ff40c12SJohn Marino 
accounting_deinit(struct hostapd_data * hapd)343ff40c12SJohn Marino static inline void accounting_deinit(struct hostapd_data *hapd)
353ff40c12SJohn Marino {
363ff40c12SJohn Marino }
373ff40c12SJohn Marino #else /* CONFIG_NO_ACCOUNTING */
38*a1157835SDaniel Fojt int accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
393ff40c12SJohn Marino void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
403ff40c12SJohn Marino void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
413ff40c12SJohn Marino int accounting_init(struct hostapd_data *hapd);
423ff40c12SJohn Marino void accounting_deinit(struct hostapd_data *hapd);
433ff40c12SJohn Marino #endif /* CONFIG_NO_ACCOUNTING */
443ff40c12SJohn Marino 
453ff40c12SJohn Marino #endif /* ACCOUNTING_H */
46