aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/accounting.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-24 23:12:50 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-24 23:12:50 (GMT)
commit1057d78eb8aa08bd17f2e1d12ba92d7c0718f294 (patch)
treeb911c9cc542fb460f61a86b2d6698aa82eb5cca3 /src/ap/accounting.h
parent6d1278e9980e0f2b92aecdb23de5433d8eb2c652 (diff)
downloadhostap-1057d78eb8aa08bd17f2e1d12ba92d7c0718f294.zip
hostap-1057d78eb8aa08bd17f2e1d12ba92d7c0718f294.tar.gz
hostap-1057d78eb8aa08bd17f2e1d12ba92d7c0718f294.tar.bz2
Move generic AP functionality implementation into src/ap
This code can be shared by both hostapd and wpa_supplicant and this is an initial step in getting the generic code moved to be under the src directories. Couple of generic files still remain under the hostapd directory due to direct dependencies to files there. Once the dependencies have been removed, they will also be moved to the src/ap directory to allow wpa_supplicant to be built without requiring anything from the hostapd directory.
Diffstat (limited to 'src/ap/accounting.h')
-rw-r--r--src/ap/accounting.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/ap/accounting.h b/src/ap/accounting.h
new file mode 100644
index 0000000..f3d60f0
--- /dev/null
+++ b/src/ap/accounting.h
@@ -0,0 +1,45 @@
+/*
+ * hostapd / RADIUS Accounting
+ * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef ACCOUNTING_H
+#define ACCOUNTING_H
+
+void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
+#ifdef CONFIG_NO_ACCOUNTING
+static inline void accounting_sta_start(struct hostapd_data *hapd,
+ struct sta_info *sta)
+{
+}
+
+static inline void accounting_sta_stop(struct hostapd_data *hapd,
+ struct sta_info *sta)
+{
+}
+
+static inline int accounting_init(struct hostapd_data *hapd)
+{
+ return 0;
+}
+
+static inline void accounting_deinit(struct hostapd_data *hapd)
+{
+}
+#else /* CONFIG_NO_ACCOUNTING */
+void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
+void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
+int accounting_init(struct hostapd_data *hapd);
+void accounting_deinit(struct hostapd_data *hapd);
+#endif /* CONFIG_NO_ACCOUNTING */
+
+#endif /* ACCOUNTING_H */