Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLAScommon
Commits
9e29301e
Commit
9e29301e
authored
Oct 15, 2020
by
Steffen Vogel
🎅🏼
Browse files
utils: add some helpers to generate UUIDs
parent
74d5ca76
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/villas/utils.hpp
View file @
9e29301e
...
...
@@ -204,13 +204,16 @@ int sha1sum(FILE *f, unsigned char *sha1);
/** Generate an UUID by MD5 hashing the provided string */
int
uuid_generate_from_str
(
uuid_t
out
,
const
std
::
string
&
data
,
const
std
::
string
&
ns
=
""
);
/** Generate an UUID by MD5 hashing the provided string */
int
uuid_generate_from_str
(
uuid_t
out
,
const
std
::
string
&
data
,
const
uuid_t
ns
);
/** Generate an UUID by MD5 hashing the serialized representation of the provided JSON object */
void
uuid_generate_from_json
(
uuid_t
out
,
json_t
*
json
,
const
std
::
string
&
ns
=
""
);
/** Generate an UUID by MD5 hashing the serialized representation of the provided JSON object */
int
uuid_generate_from_json
(
uuid_t
out
,
json_t
*
json
,
const
uuid_t
ns
);
/** Check if process is running inside a Docker container */
bool
is_docker
();
/** Check if process is running inside a Kubernetes container */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment