mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
9ec5e5388a
Signed-off-by: DL6ER <dl6er@dl6er.de>
38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* FTL Engine
|
|
* API commands and MessagePack helpers
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
#ifndef API_H
|
|
#define API_H
|
|
|
|
// struct mg_connection
|
|
#include "../civetweb/civetweb.h"
|
|
// http_send_json_chunk()
|
|
#include "../api/http.h"
|
|
#include "json_macros.h"
|
|
|
|
// Statistic methods
|
|
int api_stats_summary(struct mg_connection *conn);
|
|
int api_dns_status(struct mg_connection *conn);
|
|
|
|
int api_stats_overTime_history(struct mg_connection *conn);
|
|
int api_stats_overTime_clients(struct mg_connection *conn);
|
|
int api_stats_query_types(struct mg_connection *conn);
|
|
int api_stats_upstreams(struct mg_connection *conn);
|
|
int api_stats_top_domains(bool blocked, struct mg_connection *conn);
|
|
int api_stats_top_clients(bool blocked, struct mg_connection *conn);
|
|
int api_stats_history(struct mg_connection *conn);
|
|
int api_stats_recentblocked(struct mg_connection *conn);
|
|
|
|
// FTL methods
|
|
int api_ftl_clientIP(struct mg_connection *conn);
|
|
int api_ftl_version(struct mg_connection *conn);
|
|
int api_ftl_db(struct mg_connection *conn);
|
|
|
|
#endif // API_H
|