accounting.h revision 252726
1214501Srpaulo/* 2214501Srpaulo * hostapd / RADIUS Accounting 3214501Srpaulo * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> 4214501Srpaulo * 5252726Srpaulo * This software may be distributed under the terms of the BSD license. 6252726Srpaulo * See README for more details. 7214501Srpaulo */ 8214501Srpaulo 9214501Srpaulo#ifndef ACCOUNTING_H 10214501Srpaulo#define ACCOUNTING_H 11214501Srpaulo 12214501Srpaulo#ifdef CONFIG_NO_ACCOUNTING 13252726Srpaulostatic inline void accounting_sta_get_id(struct hostapd_data *hapd, 14252726Srpaulo struct sta_info *sta) 15252726Srpaulo{ 16252726Srpaulo} 17252726Srpaulo 18214501Srpaulostatic inline void accounting_sta_start(struct hostapd_data *hapd, 19214501Srpaulo struct sta_info *sta) 20214501Srpaulo{ 21214501Srpaulo} 22214501Srpaulo 23214501Srpaulostatic inline void accounting_sta_stop(struct hostapd_data *hapd, 24214501Srpaulo struct sta_info *sta) 25214501Srpaulo{ 26214501Srpaulo} 27214501Srpaulo 28214501Srpaulostatic inline int accounting_init(struct hostapd_data *hapd) 29214501Srpaulo{ 30214501Srpaulo return 0; 31214501Srpaulo} 32214501Srpaulo 33214501Srpaulostatic inline void accounting_deinit(struct hostapd_data *hapd) 34214501Srpaulo{ 35214501Srpaulo} 36214501Srpaulo#else /* CONFIG_NO_ACCOUNTING */ 37252726Srpaulovoid accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta); 38214501Srpaulovoid accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta); 39214501Srpaulovoid accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta); 40214501Srpauloint accounting_init(struct hostapd_data *hapd); 41214501Srpaulovoid accounting_deinit(struct hostapd_data *hapd); 42214501Srpaulo#endif /* CONFIG_NO_ACCOUNTING */ 43214501Srpaulo 44214501Srpaulo#endif /* ACCOUNTING_H */ 45