2012-12-05 [mones] 3.9.0cvs42
[claws.git] / src / recv.c
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2012 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 #include "claws-features.h"
23 #endif
24
25 #include "defs.h"
26
27 #include <glib.h>
28 #include <glib/gi18n.h>
29 #include <stdio.h>
30 #include <string.h>
31 #include <unistd.h>
32
33 #ifdef G_OS_WIN32
34 #include "w32lib.h"
35 #else
36 #include <sys/time.h>
37 #endif
38
39 #include "recv.h"
40 #include "socket.h"
41 #include "utils.h"
42
43 static RecvUIFunc       recv_ui_func;
44 static gpointer         recv_ui_func_data;
45
46 void recv_set_ui_func(RecvUIFunc func, gpointer data)
47 {
48         recv_ui_func = func;
49         recv_ui_func_data = data;
50 }