Repository navigation
Expand file tree
/
Copy pathinit.h
More file actions
52 lines (43 loc) · 1.39 KB
/
Copy pathinit.h
File metadata and controls
52 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License") 1.1!
* You may not use this file except in compliance with the License.
*
* See https://spdx.org/licenses/CDDL-1.1.html for the specific
* language governing permissions and limitations under the License.
*
* Copyright 2025 Jens Elkner (jel+solmex-src@cs.ovgu.de)
*/
/**
* @file init.h
* Utilities to initialize node related stuff.
*/
#ifndef SOLMEX_INIT_H
#define SOLMEX_INIT_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize the node stack.
* @param dmi Whether to initialize static DMI derived metrics.
* @param kstats Whether to initialize static kstats derived metrics.
* @param compact If \c true, no HELP/TYPE comments get generated and thus
* will not be emitted in a client response.
* @param tasks Set to the number of tasks which need to be queried on
* client requests.
* @return \c NULL on error, the sensor list otherwise.
*/
uint8_t start(bool dmi, bool kstats, bool compact, uint32_t *tasks);
/**
* @brief Shutdown the node stack and cleanup any allocated resources (and
* prepare for exit).
* @param list The list of sensors to release.
* @return \c 0 on success, a number > 0 otherwise.
*/
void stop(void);
char *getVersions(psb_t *report, bool compact);
#ifdef __cplusplus
}
#endif
#endif // SOLMEX_INIT_H