From c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:22 +0100 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- logsmanagement/db_api.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 logsmanagement/db_api.h (limited to 'logsmanagement/db_api.h') diff --git a/logsmanagement/db_api.h b/logsmanagement/db_api.h new file mode 100644 index 000000000..3f4fe0d30 --- /dev/null +++ b/logsmanagement/db_api.h @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +/** @file db_api.h + * @brief Header of db_api.c + */ + +#ifndef DB_API_H_ +#define DB_API_H_ + +#include "../database/sqlite/sqlite3.h" +#include +#include "query.h" +#include "file_info.h" + +#define LOGS_MANAG_DB_SUBPATH "/logs_management_db" + +int db_user_version(sqlite3 *const db, const int set_user_version); +void db_set_main_dir(char *const dir); +int db_init(void); +void db_search(logs_query_params_t *const p_query_params, struct File_info *const p_file_infos[]); + +#endif // DB_API_H_ -- cgit v1.2.3