master
h 17 lines 473 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_RUN_DIR_H
4 #define NETDATA_RUN_DIR_H
5
6 #include "libnetdata/libnetdata.h"
7
8 /**
9 * Initialize and get the runtime directory for Netdata
10 * This function gets or creates the runtime directory based on environment or system defaults
11 *
12 * @param rw When true, create the directory if it doesn't exist
13 * @return const char* The runtime directory path
14 */
15 const char *os_run_dir(bool rw);
16
17 #endif //NETDATA_RUN_DIR_H