sync with 0.4.65cvs11
[claws.git] / src / recv.h
index 897e52b..cae8dba 100644 (file)
 
 #include "socket.h"
 
-gint recv_write_to_file(SockInfo *sock, const gchar *filename);
-gint recv_bytes_write_to_file(SockInfo *sock, glong size, const gchar *filename);
-gint recv_write(SockInfo *sock, FILE *fp);
-gint recv_bytes_write(SockInfo *sock, glong size, FILE *fp);
+typedef void (*RecvUIFunc)     (SockInfo       *sock,
+                                gint            read_len,
+                                gpointer        data);
+
+gint recv_write_to_file                (SockInfo       *sock,
+                                const gchar    *filename);
+gint recv_bytes_write_to_file  (SockInfo       *sock,
+                                glong           size,
+                                const gchar    *filename);
+gint recv_write                        (SockInfo       *sock,
+                                FILE           *fp);
+gint recv_bytes_write          (SockInfo       *sock,
+                                glong           size,
+                                FILE           *fp);
+
+void recv_set_ui_func          (RecvUIFunc      func,
+                                gpointer        data);
 
 #endif /* __RECV_H__ */