LCOV - code coverage report
Current view: top level - src/ap - accounting.h (source / functions) Hit Total Coverage
Test: wpa_supplicant/hostapd combined for hwsim test run 1393793999 Lines: 10 10 100.0 %
Date: 2014-03-02 Functions: 5 5 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       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                 :            : 
       9                 :            : #ifndef ACCOUNTING_H
      10                 :            : #define ACCOUNTING_H
      11                 :            : 
      12                 :            : #ifdef CONFIG_NO_ACCOUNTING
      13                 :        187 : static inline void accounting_sta_get_id(struct hostapd_data *hapd,
      14                 :            :                                          struct sta_info *sta)
      15                 :            : {
      16                 :        187 : }
      17                 :            : 
      18                 :        101 : static inline void accounting_sta_start(struct hostapd_data *hapd,
      19                 :            :                                         struct sta_info *sta)
      20                 :            : {
      21                 :        101 : }
      22                 :            : 
      23                 :        386 : static inline void accounting_sta_stop(struct hostapd_data *hapd,
      24                 :            :                                        struct sta_info *sta)
      25                 :            : {
      26                 :        386 : }
      27                 :            : 
      28                 :         86 : static inline int accounting_init(struct hostapd_data *hapd)
      29                 :            : {
      30                 :         86 :         return 0;
      31                 :            : }
      32                 :            : 
      33                 :         86 : static inline void accounting_deinit(struct hostapd_data *hapd)
      34                 :            : {
      35                 :         86 : }
      36                 :            : #else /* CONFIG_NO_ACCOUNTING */
      37                 :            : void accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
      38                 :            : void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
      39                 :            : void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
      40                 :            : int accounting_init(struct hostapd_data *hapd);
      41                 :            : void accounting_deinit(struct hostapd_data *hapd);
      42                 :            : #endif /* CONFIG_NO_ACCOUNTING */
      43                 :            : 
      44                 :            : #endif /* ACCOUNTING_H */

Generated by: LCOV version 1.9