accounting.h 961 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * hostapd / RADIUS Accounting
  3. * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef ACCOUNTING_H
  9. #define ACCOUNTING_H
  10. #ifdef CONFIG_NO_ACCOUNTING
  11. static inline void accounting_sta_start(struct hostapd_data *hapd,
  12. struct sta_info *sta)
  13. {
  14. }
  15. static inline void accounting_sta_stop(struct hostapd_data *hapd,
  16. struct sta_info *sta)
  17. {
  18. }
  19. static inline int accounting_init(struct hostapd_data *hapd)
  20. {
  21. return 0;
  22. }
  23. static inline void accounting_deinit(struct hostapd_data *hapd)
  24. {
  25. }
  26. #else /* CONFIG_NO_ACCOUNTING */
  27. void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
  28. void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
  29. int accounting_init(struct hostapd_data *hapd);
  30. void accounting_deinit(struct hostapd_data *hapd);
  31. #endif /* CONFIG_NO_ACCOUNTING */
  32. #endif /* ACCOUNTING_H */