Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-stream-process.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Copyright (C) 2003 Ximian Inc.
4  *
5  *  Authors: David Woodhouse <dwmw2@infradead.org>
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 #ifndef _CAMEL_STREAM_NULL_H
24 #define _CAMEL_STREAM_NULL_H
25
26 #include <camel/camel-stream.h>
27
28 #define CAMEL_STREAM_PROCESS(obj)         CAMEL_CHECK_CAST (obj, camel_stream_process_get_type (), CamelStreamProcess)
29 #define CAMEL_STREAM_PROCESS_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_stream_process_get_type (), CamelStreamProcessClass)
30 #define CAMEL_IS_STREAM_PROCESS(obj)      CAMEL_CHECK_TYPE (obj, camel_stream_process_get_type ())
31
32 G_BEGIN_DECLS
33
34 typedef struct _CamelStreamProcessClass CamelStreamProcessClass;
35 typedef struct _CamelStreamProcess CamelStreamProcess;
36
37 struct _CamelStreamProcess {
38         CamelStream parent;
39         
40         int sockfd;
41         pid_t childpid;
42 };
43
44 struct _CamelStreamProcessClass {
45         CamelStreamClass parent_class;
46 };
47
48 CamelType               camel_stream_process_get_type   (void);
49 CamelStream            *camel_stream_process_new                (void);
50 int camel_stream_process_connect(CamelStreamProcess *, const char *, const char **);
51
52 G_END_DECLS
53
54 #endif /* ! _CAMEL_STREAM_PROCESS_H */