Line data Source code
1 : /* SPDX-License-Identifier: Apache-2.0 */
2 : /**
3 : * @file mlops-agent-internal.c
4 : * @date 20 January 2025
5 : * @brief Internal function for ml-agent interface.
6 : * @see https://github.com/nnstreamer/deviceMLOps.MLAgent
7 : * @author Jaeyun Jung <jy1210.jung@samsung.com>
8 : * @bug No known bugs except for NYI items
9 : */
10 :
11 : #include "log.h"
12 : #include "mlops-agent-internal.h"
13 : #include "mlops-agent-node.h"
14 : #include "service-db-util.h"
15 :
16 : /**
17 : * @brief Internal function to initialize mlops-agent interface.
18 : */
19 : void
20 0 : ml_agent_initialize (const char *db_path)
21 : {
22 0 : g_assert (STR_IS_VALID (db_path));
23 0 : g_assert (g_file_test (db_path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR));
24 :
25 0 : svcdb_initialize (db_path);
26 0 : mlops_node_initialize ();
27 0 : }
28 :
29 : /**
30 : * @brief Internal function to finalize mlops-agent interface.
31 : */
32 : void
33 0 : ml_agent_finalize (void)
34 : {
35 0 : mlops_node_finalize ();
36 0 : svcdb_finalize ();
37 0 : }
|