X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=friend.h;h=74af824377ce69b646925701d27b6e698a774885;hb=refs%2Fheads%2Fqdbm;hp=76a22bd0e3db86a10196b2ef8b1d3409445c215a;hpb=9bfbad1591814150338bb62050d28ad0e4033552;p=cascardo%2Ff2fchat.git diff --git a/friend.h b/friend.h index 76a22bd..74af824 100644 --- a/friend.h +++ b/friend.h @@ -26,6 +26,9 @@ int sock_init(void); struct friend; + +void friend_init(void); + struct cache; int create_cache(struct cache **cache); int destroy_cache(struct cache *cache); @@ -38,4 +41,7 @@ struct friend *friend_get_by_address(GInetAddress *address, uint16_t port); char *friend_get_name(); +void friend_timeout(struct friend *friend); +void friend_got_message(struct friend *friend, char *buffer, size_t len); + #endif