Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-tcp-stream-raw.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
4  *
5  *  Copyright 2001 Ximian, Inc. (www.ximian.com)
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU Lesser General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22
23
24 #ifndef CAMEL_TCP_STREAM_RAW_H
25 #define CAMEL_TCP_STREAM_RAW_H
26
27 #include <camel/camel-tcp-stream.h>
28
29 #define CAMEL_TCP_STREAM_RAW_TYPE     (camel_tcp_stream_raw_get_type ())
30 #define CAMEL_TCP_STREAM_RAW(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_TCP_STREAM_RAW_TYPE, CamelTcpStreamRaw))
31 #define CAMEL_TCP_STREAM_RAW_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_TCP_STREAM_RAW_TYPE, CamelTcpStreamRawClass))
32 #define CAMEL_IS_TCP_STREAM_RAW(o)    (CAMEL_CHECK_TYPE((o), CAMEL_TCP_STREAM_RAW_TYPE))
33
34 G_BEGIN_DECLS
35
36 struct _CamelTcpStreamRaw
37 {
38         CamelTcpStream parent_object;
39         
40         int sockfd;
41 #ifdef G_OS_WIN32
42         int is_nonblocking;
43 #endif
44 };
45
46 typedef struct {
47         CamelTcpStreamClass parent_class;
48         
49         /* virtual functions */
50         
51 } CamelTcpStreamRawClass;
52
53 /* Standard Camel function */
54 CamelType camel_tcp_stream_raw_get_type (void);
55
56 /* public methods */
57 CamelStream *camel_tcp_stream_raw_new (void);
58
59 G_END_DECLS
60
61 #endif /* CAMEL_TCP_STREAM_RAW_H */