projects
/
cascardo
/
f2fchat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add command menu for messages received from loopback.
[cascardo/f2fchat.git]
/
friend.h
diff --git
a/friend.h
b/friend.h
index
b120fa1
..
74af824
100644
(file)
--- a/
friend.h
+++ b/
friend.h
@@
-21,10
+21,14
@@
#include <sys/types.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdint.h>
+#include <gio/gio.h>
int sock_init(void);
struct friend;
int sock_init(void);
struct friend;
+
+void friend_init(void);
+
struct cache;
int create_cache(struct cache **cache);
int destroy_cache(struct cache *cache);
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);
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
#endif