Skip to content

Commit

Permalink
Export ldms_addr_ntop()
Browse files Browse the repository at this point in the history
  • Loading branch information
nichamon committed Oct 8, 2024
1 parent 191965f commit dfef0b3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ldms/src/core/ldms.h
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,21 @@ struct ldms_addr {
int ldms_xprt_addr(ldms_t x, struct ldms_addr *local_addr,
struct ldms_addr *remote_addr);

/**
* \brief Get addresss string
*
* \c ldms_sockaddr_ntop() receives a sockaddr \c sa.
* On the other hand, \c ldms_addr_ntop() receives an LDMS address.
*
* \param sa sockaddr
* \param addr LDMS address
* \param buff String buffer to receive the address string
* \param sz Size of \c buff
*
* \return \c buff on success; otherwise, NULL is returned.
*/
const char *ldms_sockaddr_ntop(struct sockaddr *sa, char *buff, size_t sz);
const char *ldms_addr_ntop(struct ldms_addr *addr, char *buff, size_t sz);

/**
* \brief Convert a CIDR IP address string to \c ldms_addr
Expand Down

0 comments on commit dfef0b3

Please sign in to comment.