Commit 48ada968 authored by Shane Snyder's avatar Shane Snyder

code to get addr string associated with group id

parent f6d70c1b
......@@ -203,6 +203,17 @@ ssg_group_id_t ssg_group_id_dup(
void ssg_group_id_free(
ssg_group_id_t group_id);
/**
* Retrieves the HG address string associated with an SSG group identifier.
*
* @param[in] group_id SSG group ID
* @returns address string on success, NULL otherwise
*
* NOTE: returned string must be freed by caller.
*/
char *ssg_group_id_get_addr_str(
ssg_group_id_t group_id);
/**
* Serializes an SSG group identifier into a buffer.
*
......
......@@ -660,6 +660,15 @@ void ssg_group_id_free(
return;
}
char *ssg_group_id_get_addr_str(
ssg_group_id_t group_id)
{
ssg_group_descriptor_t *group_descriptor = (ssg_group_descriptor_t *)group_id;
return strdup(group_descriptor->addr_str);
}
void ssg_group_id_serialize(
ssg_group_id_t group_id,
char ** buf_p,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment