Updated convenience function zts_get_node_id_from_file()

This commit is contained in:
Joseph Henry
2017-11-15 15:28:55 -08:00
parent 4525b2c553
commit d3f92d98ed
2 changed files with 11 additions and 23 deletions

View File

@@ -197,6 +197,14 @@ void zts_get_homepath(char *homePath, size_t len);
*/
uint64_t zts_get_node_id();
/**
* @brief Returns the ztaddress/nodeId/device ID of this instance (as read from a file)
*
* @usage Call with or without starting the service with zts_start()
* @return
*/
uint64_t zts_get_node_id_from_file(const char *filepath);
/**
* @brief Return the number of peers
*