[feat] show actuall device name instate of ip address in notification

This commit is contained in:
Julian Sparber
2017-10-26 13:04:07 +02:00
parent 0f5ea47e56
commit 8b91c96fe6
4 changed files with 12 additions and 8 deletions

View File

@@ -112,7 +112,7 @@ void teleport_peer_remove_peer (TeleportPeer *self, Peer *device)
g_signal_emit (self, signalIds[REMOVE], 0, device);
}
void teleport_peer_remove_peer_by_name (TeleportPeer *self, gchar *name)
void teleport_peer_remove_peer_by_name (TeleportPeer *self, const gchar *name)
{
Peer *element = NULL;
gboolean found = FALSE;
@@ -128,7 +128,7 @@ void teleport_peer_remove_peer_by_name (TeleportPeer *self, gchar *name)
}
gchar *
teleport_peer_get_name_by_addr (TeleportPeer *self, gchar *addr)
teleport_peer_get_name_by_addr (TeleportPeer *self, const gchar *addr)
{
Peer *element = NULL;
gchar *name = NULL;