accounting.h revision 252726
1264790Sbapt/* 2264790Sbapt * hostapd / RADIUS Accounting 3264790Sbapt * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> 4264790Sbapt * 5264790Sbapt * This software may be distributed under the terms of the BSD license. 6264790Sbapt * See README for more details. 7264790Sbapt */ 8264790Sbapt 9264790Sbapt#ifndef ACCOUNTING_H 10264790Sbapt#define ACCOUNTING_H 11264790Sbapt 12264790Sbapt#ifdef CONFIG_NO_ACCOUNTING 13264790Sbaptstatic inline void accounting_sta_get_id(struct hostapd_data *hapd, 14264790Sbapt struct sta_info *sta) 15264790Sbapt{ 16264790Sbapt} 17264790Sbapt 18264790Sbaptstatic inline void accounting_sta_start(struct hostapd_data *hapd, 19264790Sbapt struct sta_info *sta) 20264790Sbapt{ 21264790Sbapt} 22264790Sbapt 23264790Sbaptstatic inline void accounting_sta_stop(struct hostapd_data *hapd, 24264790Sbapt struct sta_info *sta) 25264790Sbapt{ 26264790Sbapt} 27264790Sbapt 28264790Sbaptstatic inline int accounting_init(struct hostapd_data *hapd) 29264790Sbapt{ 30264790Sbapt return 0; 31264790Sbapt} 32264790Sbapt 33264790Sbaptstatic inline void accounting_deinit(struct hostapd_data *hapd) 34264790Sbapt{ 35264790Sbapt} 36264790Sbapt#else /* CONFIG_NO_ACCOUNTING */ 37264790Sbaptvoid accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta); 38264790Sbaptvoid accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta); 39264790Sbaptvoid accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta); 40264790Sbaptint accounting_init(struct hostapd_data *hapd); 41264790Sbaptvoid accounting_deinit(struct hostapd_data *hapd); 42264790Sbapt#endif /* CONFIG_NO_ACCOUNTING */ 43264790Sbapt 44264790Sbapt#endif /* ACCOUNTING_H */ 45264790Sbapt