#include <freeradius-devel/server/map_proc.h>
#include <freeradius-devel/server/module.h>
#include <freeradius-devel/server/radmin.h>
+#include <freeradius-devel/server/snmp.h>
#include <freeradius-devel/server/state.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/dependency.h>
#include <freeradius-devel/server/main_loop.h>
+#include <freeradius-devel/server/snmp.h>
#include <freeradius-devel/protocol/snmp/freeradius.h>
--- /dev/null
+#pragma once
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/**
+ * $Id$
+ *
+ * @file lib/server/snmp.h
+ * @brief SNMP functions
+ *
+ * @copyright 2020 The FreeRADIUS server project
+ */
+RCSIDH(snmp_h, "$Id$")
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int fr_snmp_process(request_t *request);
+int fr_snmp_init(void);
+void fr_snmp_free(void);
+
+#ifdef __cplusplus
+}
+#endif
void radius_stats_ema(fr_stats_ema_t *ema,
fr_time_t start, fr_time_t end);
void fr_stats_bins(fr_stats_t *stats, fr_time_t start, fr_time_t end);
-int fr_snmp_process(request_t *request);
-int fr_snmp_init(void);
-
#define FR_STATS_INC(_x, _y) radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++;
#define FR_STATS_TYPE_INC(_x) _x++