projects
/
cascardo
/
f2fchat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add getter for friend name
[cascardo/f2fchat.git]
/
friend.c
diff --git
a/friend.c
b/friend.c
index
7386f83
..
e3d987f
100644
(file)
--- a/
friend.c
+++ b/
friend.c
@@
-96,6
+96,11
@@
int destroy_cache(struct cache *cache)
g_slice_free(struct cache, cache);
}
+char * friend_get_name(struct friend *friend)
+{
+ return friend->name;
+}
+
int cache_add_friend(struct cache *cache, char *name, char *address, uint16_t port)
{
struct friend *friend;