aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_peer.c')
-rw-r--r--src/mesh/gnunet-service-mesh_peer.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c
index 05fb90f39..2c3967d8a 100644
--- a/src/mesh/gnunet-service-mesh_peer.c
+++ b/src/mesh/gnunet-service-mesh_peer.c
@@ -1569,6 +1569,21 @@ GMP_get_id (const struct MeshPeer *peer)
1569 return GNUNET_PEER_resolve2 (peer->id); 1569 return GNUNET_PEER_resolve2 (peer->id);
1570} 1570}
1571 1571
1572
1573/**
1574 * Get the Short ID of a peer.
1575 *
1576 * @param peer Peer to get from.
1577 *
1578 * @return Short ID of peer.
1579 */
1580GNUNET_PEER_Id
1581GMP_get_short_id (const struct MeshPeer *peer)
1582{
1583 return peer->id;
1584}
1585
1586
1572/** 1587/**
1573 * Get the static string for a peer ID. 1588 * Get the static string for a peer ID.
1574 * 1589 *