2012-01-31 [wwp] 3.8.0cvs18
[claws.git] / src / recv.c
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  * 
18  */
19
20 #ifdef HAVE_CONFIG_H
21 #  include "config.h"
22 #endif
23
24 #include "defs.h"
25
26 #include <glib.h>
27 #include <glib/gi18n.h>
28 #include <stdio.h>
29 #include <string.h>
30 #include <unistd.h>
31
32 #ifdef G_OS_WIN32
33 #include "w32lib.h"
34 #else
35 #include <sys/time.h>
36 #endif
37
38 #include "recv.h"
39 #include "socket.h"
40 #include "utils.h"
41
42 static RecvUIFunc       recv_ui_func;
43 static gpointer         recv_ui_func_data;
44
45 void recv_set_ui_func(RecvUIFunc func, gpointer data)
46 {
47         recv_ui_func = func;
48         recv_ui_func_data = data;
49 }