master
h 19 lines 431 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_CLAIM_H_
4 # define NETDATA_CLAIM_H_ 1
5
6 #include <wchar.h>
7 #include "ui.h"
8
9 extern LPWSTR token;
10 extern LPWSTR room;
11 extern LPWSTR proxy;
12
13 void netdata_claim_error_exit(wchar_t *function);
14 static inline void netdata_claim_convert_str(char *dst, wchar_t *src, size_t len) {
15 size_t copied = wcstombs(dst, src, len);
16 dst[copied] = '\0';
17 }
18
19 #endif //NETDATA_CLAIM_H_