1/* 2 * hostapd / RADIUS Accounting 3 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * 9 * Alternatively, this software may be distributed under the terms of BSD 10 * license. 11 * 12 * See README and COPYING for more details. 13 */ 14 15#ifndef ACCOUNTING_H 16#define ACCOUNTING_H 17 18void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta); 19#ifdef CONFIG_NO_ACCOUNTING 20static inline void accounting_sta_start(struct hostapd_data *hapd, 21 struct sta_info *sta) 22{ 23} 24 25static inline void accounting_sta_stop(struct hostapd_data *hapd, 26 struct sta_info *sta) 27{ 28} 29 30static inline int accounting_init(struct hostapd_data *hapd) 31{ 32 return 0; 33} 34 35static inline void accounting_deinit(struct hostapd_data *hapd) 36{ 37} 38#else /* CONFIG_NO_ACCOUNTING */ 39void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta); 40void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta); 41int accounting_init(struct hostapd_data *hapd); 42void accounting_deinit(struct hostapd_data *hapd); 43#endif /* CONFIG_NO_ACCOUNTING */ 44 45#endif /* ACCOUNTING_H */ 46