"Initial commit to Gerrit"
[profile/ivi/libgsf.git] / gsf / gsf-output-stdio.h
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * gsf-output-stdio.h: stdio based output
4  *
5  * Copyright (C) 2002-2006 Jody Goldberg (jody@gnome.org)
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2.1 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
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
19  * USA
20  */
21
22 #ifndef GSF_OUTPUT_STDIO_H
23 #define GSF_OUTPUT_STDIO_H
24
25 #include <gsf/gsf-output.h>
26 #include <stdio.h>
27
28 G_BEGIN_DECLS
29
30 #define GSF_OUTPUT_STDIO_TYPE        (gsf_output_stdio_get_type ())
31 #define GSF_OUTPUT_STDIO(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_OUTPUT_STDIO_TYPE, GsfOutputStdio))
32 #define GSF_IS_OUTPUT_STDIO(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSF_OUTPUT_STDIO_TYPE))
33
34 typedef struct _GsfOutputStdio GsfOutputStdio;
35
36 GType gsf_output_stdio_get_type      (void) G_GNUC_CONST;
37 /* void  gsf_output_stdio_register_type (GTypeModule *module); glib dynamic types are not thread safe */
38
39 GsfOutput *gsf_output_stdio_new        (char const *filename, GError **err);
40 GsfOutput *gsf_output_stdio_new_full   (char const *filename, GError **err,
41                                         char const *first_property_name,
42                                         ...); /* G_GNUC_NULL_TERMINATED */
43 GsfOutput *gsf_output_stdio_new_valist (char const *filename, GError **err,
44                                         char const *first_property_name,
45                                         va_list     var_args);
46 GsfOutput *gsf_output_stdio_new_FILE   (char const *filename, FILE *file,
47                                         gboolean keep_open);
48
49 G_END_DECLS
50
51 #endif /* GSF_OUTPUT_STDIO_H */