X-Git-Url: http://git.cascardo.info/?p=cascardo%2Ff2fchat.git;a=blobdiff_plain;f=friend.h;h=74af824377ce69b646925701d27b6e698a774885;hp=b120fa12f58659ae198e922d84a78676281d8a41;hb=d861cf30156988d65300cc3480254b6343598fda;hpb=6952f9b2fb6203aab63c63ef74c2da9b90f75f4b diff --git a/friend.h b/friend.h index b120fa1..74af824 100644 --- a/friend.h +++ b/friend.h @@ -21,10 +21,14 @@ #include #include +#include int sock_init(void); struct friend; + +void friend_init(void); + struct cache; int create_cache(struct cache **cache); int destroy_cache(struct cache *cache); @@ -33,5 +37,11 @@ int load_cache(struct cache *cache, char *fname); int store_cache(struct cache *cache, char *fname); int friend_send_message(struct friend *friend, char *buffer, size_t len); +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