00001 00016 #ifndef ACCOUNTING_H 00017 #define ACCOUNTING_H 00018 00019 void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta); 00020 #ifdef CONFIG_NO_ACCOUNTING 00021 static inline void accounting_sta_start(struct hostapd_data *hapd, 00022 struct sta_info *sta) 00023 { 00024 } 00025 00026 static inline void accounting_sta_stop(struct hostapd_data *hapd, 00027 struct sta_info *sta) 00028 { 00029 } 00030 00031 static inline int accounting_init(struct hostapd_data *hapd) 00032 { 00033 return 0; 00034 } 00035 00036 static inline void accounting_deinit(struct hostapd_data *hapd) 00037 { 00038 } 00039 #else /* CONFIG_NO_ACCOUNTING */ 00040 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta); 00041 void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta); 00042 int accounting_init(struct hostapd_data *hapd); 00043 void accounting_deinit(struct hostapd_data *hapd); 00044 #endif /* CONFIG_NO_ACCOUNTING */ 00045 int accounting_reconfig(struct hostapd_data *hapd, 00046 struct hostapd_config *oldconf); 00047 00048 #endif /* ACCOUNTING_H */ 00049