wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
accounting.h
Go to the documentation of this file.
1 
5 #ifndef ACCOUNTING_H
6 #define ACCOUNTING_H
7 
8 #ifdef CONFIG_NO_ACCOUNTING
9 static inline void accounting_sta_get_id(struct hostapd_data *hapd,
10  struct sta_info *sta)
11 {
12 }
13 
14 static inline void accounting_sta_start(struct hostapd_data *hapd,
15  struct sta_info *sta)
16 {
17 }
18 
19 static inline void accounting_sta_stop(struct hostapd_data *hapd,
20  struct sta_info *sta)
21 {
22 }
23 
24 static inline int accounting_init(struct hostapd_data *hapd)
25 {
26  return 0;
27 }
28 
29 static inline void accounting_deinit(struct hostapd_data *hapd)
30 {
31 }
32 #else /* CONFIG_NO_ACCOUNTING */
33 void accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
34 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
35 void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
36 int accounting_init(struct hostapd_data *hapd);
37 void accounting_deinit(struct hostapd_data *hapd);
38 #endif /* CONFIG_NO_ACCOUNTING */
39 
40 #endif /* ACCOUNTING_H */
Definition: sta_info.h:44
int accounting_init(struct hostapd_data *hapd)
accounting_init: Initialize accounting
Definition: accounting.c:454
void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta)
Start STA accounting.
Definition: accounting.c:206
void accounting_deinit(struct hostapd_data *hapd)
accounting_deinit: Deinitialize accounting
Definition: accounting.c:481
void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta)
Stop STA accounting.
Definition: accounting.c:367
hostapd per-BSS data structure
Definition: hostapd.h:103