00001 /* 00002 * hostapd / RADIUS Accounting 00003 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #ifndef ACCOUNTING_H 00016 #define ACCOUNTING_H 00017 00018 void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta); 00019 #ifdef CONFIG_NO_ACCOUNTING 00020 static inline void accounting_sta_start(struct hostapd_data *hapd, 00021 struct sta_info *sta) 00022 { 00023 } 00024 00025 static inline void accounting_sta_stop(struct hostapd_data *hapd, 00026 struct sta_info *sta) 00027 { 00028 } 00029 00030 static inline int accounting_init(struct hostapd_data *hapd) 00031 { 00032 return 0; 00033 } 00034 00035 static inline void accounting_deinit(struct hostapd_data *hapd) 00036 { 00037 } 00038 #else /* CONFIG_NO_ACCOUNTING */ 00039 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta); 00040 void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta); 00041 int accounting_init(struct hostapd_data *hapd); 00042 void accounting_deinit(struct hostapd_data *hapd); 00043 #endif /* CONFIG_NO_ACCOUNTING */ 00044 00045 #endif /* ACCOUNTING_H */