diff options
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/nogaim.h | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/protocols/nogaim.h b/protocols/nogaim.h index 607a67de..8ec65347 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -159,6 +159,25 @@ struct aim_user {  	irc_t *irc;  }; +struct ft  +{ +	const char *filename; +	 +	/* Total number of bytes in file */ +	size_t total_bytes; +	 +	/* Current number of bytes received */ +	size_t cur_bytes; +}; + +struct ft_request  +{ +	const char *filename; +	struct gaim_connection *gc; +}; + +typedef void (*ft_recv_handler) (struct ft *, void *data, size_t len); +  struct prpl {  	int options;  	const char *name; @@ -214,6 +233,11 @@ struct prpl {  	/* change a buddy's group on a server list/roster */  	void (* group_buddy)	(struct gaim_connection *, char *who, char *old_group, char *new_group); +	/* file transfers */ +	struct ft_send_req *(* req_send_file) (struct gaim_connection *, const char *file); +	void (* send_file_part) (struct gaim_connection *, struct ft*, void *data, size_t length); +	void (* accept_recv_file) (struct gaim_connection *, struct ft*, ft_recv_handler); +  	void (* buddy_free)	(struct buddy *);  	char *(* get_status_string) (struct gaim_connection *gc, int stat); | 
