mirror of
https://github.com/pi-hole/FTL.git
synced 2026-07-07 11:45:10 +01:00
64144a960c
Signed-off-by: DL6ER <dl6er@dl6er.de>
25 lines
838 B
C
25 lines
838 B
C
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2023 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* FTL Engine
|
|
* Sessions table database prototypes
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
#ifndef SESSION_TABLE_PRIVATE_H
|
|
#define SESSION_TABLE_PRIVATE_H
|
|
|
|
#include "sqlite3.h"
|
|
// struct session
|
|
#include "api/auth.h"
|
|
|
|
bool create_session_table(sqlite3 *db);
|
|
bool add_session_app_column(sqlite3 *db);
|
|
bool add_session_cli_column(sqlite3 *db);
|
|
bool add_session_x_forwarded_for_column(sqlite3 *db);
|
|
bool backup_db_sessions(struct session *sessions, const uint16_t max_sessions);
|
|
bool restore_db_sessions(struct session *sessions, const uint16_t max_sessions);
|
|
|
|
#endif // SESSION_TABLE_PRIVATE_H
|