1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

utils: add some helpers to generate UUIDs

This commit is contained in:
Steffen Vogel 2020-10-15 12:52:23 +02:00
parent 0e1e39ab4c
commit 4f7a7baab5

View file

@ -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 */