~ubuntu-branches/ubuntu/saucy/wpasupplicant/saucy

« back to all changes in this revision

Viewing changes to src/ap/accounting.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2010-11-22 09:43:43 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122094343-qgsxaojvmswfri77
Tags: 0.7.3-0ubuntu1
* Get wpasupplicant 0.7.3 from Debian's SVN. Leaving 0.7.3-1 as unreleased
  for now.
* Build-Depend on debhelper 8, since the packaging from Debian uses compat 8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
18
void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
 
19
#ifdef CONFIG_NO_ACCOUNTING
 
20
static inline void accounting_sta_start(struct hostapd_data *hapd,
 
21
                                        struct sta_info *sta)
 
22
{
 
23
}
 
24
 
 
25
static inline void accounting_sta_stop(struct hostapd_data *hapd,
 
26
                                       struct sta_info *sta)
 
27
{
 
28
}
 
29
 
 
30
static inline int accounting_init(struct hostapd_data *hapd)
 
31
{
 
32
        return 0;
 
33
}
 
34
 
 
35
static inline void accounting_deinit(struct hostapd_data *hapd)
 
36
{
 
37
}
 
38
#else /* CONFIG_NO_ACCOUNTING */
 
39
void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
 
40
void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
 
41
int accounting_init(struct hostapd_data *hapd);
 
42
void accounting_deinit(struct hostapd_data *hapd);
 
43
#endif /* CONFIG_NO_ACCOUNTING */
 
44
 
 
45
#endif /* ACCOUNTING_H */