summaryrefslogtreecommitdiffstats
path: root/glib/dbus-binding-tool-glib.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-02-19 23:25:41 +0000
committerColin Walters <walters@verbum.org>2005-02-19 23:25:41 +0000
commit4c3d2abe274dc970d65688137fbd3151d53d3f7c (patch)
tree5bb6862251f14d2265c64fcdcfaa33849bdc3e6a /glib/dbus-binding-tool-glib.c
parent4ec87547cbf54470c1e3d847e8c4900d70527427 (diff)
2005-02-19 Colin Walters <walters@verbum.org>
* glib/dbus-binding-tool-glib.c (dbus_binding_tool_output_glib_server): Fix iochannel refcounting. * glib/dbus-glib-tool.c: Include dbus-glib-tool.h, as well as errno.h and sys/stat.h. (lose): New function, prints error with newline and exits. (lose_gerror): Similar, but takes GError for message. (main): Add --output argument to specify output file to write to, instead of always printing to stdout. In this mode, determine timestamps on source files to see whether any are newer than the target file. If not, exit. Also convert a number of error messages to use lose (since it's shorter), and switch to using g_io_channel_shutdown.
Diffstat (limited to 'glib/dbus-binding-tool-glib.c')
-rw-r--r--glib/dbus-binding-tool-glib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/dbus-binding-tool-glib.c b/glib/dbus-binding-tool-glib.c
index 4ead51a3..94823cb1 100644
--- a/glib/dbus-binding-tool-glib.c
+++ b/glib/dbus-binding-tool-glib.c
@@ -527,8 +527,8 @@ dbus_binding_tool_output_glib_server (BaseInfo *info, GIOChannel *channel, GErro
WRITE_OR_LOSE ("#include <dbus/dbus-glib.h>\n");
- g_io_channel_ref (data.channel);
data.channel = channel;
+ g_io_channel_ref (data.channel);
if (!generate_glue (info, &data, error))
goto io_lose;