summaryrefslogtreecommitdiffstats
path: root/logsmanagement/db_api.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:20:02 +0000
commit58daab21cd043e1dc37024a7f99b396788372918 (patch)
tree96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /logsmanagement/db_api.h
parentReleasing debian version 1.43.2-1. (diff)
downloadnetdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz
netdata-58daab21cd043e1dc37024a7f99b396788372918.zip
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'logsmanagement/db_api.h')
-rw-r--r--logsmanagement/db_api.h22
1 files changed, 22 insertions, 0 deletions
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 <uv.h>
+#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_