From ad5bafed044278dac991924dcde2a49cc2850b26 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 11 May 2005 19:02:31 +0000 Subject: 2005-05-11 Ross Burton * glib/dbus-glib-tool.c: Add --prefix argument. * glib/dbus-binding-tool-glib.h: Add prefix argument. * glib/dbus-binding-tool-glib.c (compute_marshaller_name): Add prefix argument. (generate_glue): Pass prefix argument down. (dbus_binding_tool_output_glib_server): Pass prefix to glib-genmarshal. --- glib/dbus-glib-tool.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'glib/dbus-glib-tool.c') diff --git a/glib/dbus-glib-tool.c b/glib/dbus-glib-tool.c index 1be0be7e..53ae42b2 100644 --- a/glib/dbus-glib-tool.c +++ b/glib/dbus-glib-tool.c @@ -265,6 +265,7 @@ main (int argc, char **argv) { const char *prev_arg; const char *output_file; + const char *prefix; char *output_file_tmp; int i; GSList *files; @@ -291,6 +292,7 @@ main (int argc, char **argv) files = NULL; prev_arg = NULL; output_file = NULL; + prefix = ""; ignore_unsupported = FALSE; force = FALSE; i = 1; @@ -330,6 +332,10 @@ main (int argc, char **argv) { output_file = arg + 9; } + else if (strncmp (arg, "--prefix=", 9) == 0) + { + prefix = arg + 9; + } else if (arg[0] == '-' && arg[1] == '-' && arg[2] == '\0') @@ -414,7 +420,7 @@ main (int argc, char **argv) pretty_print ((BaseInfo*) node, 0); break; case DBUS_BINDING_OUTPUT_GLIB_SERVER: - if (!dbus_binding_tool_output_glib_server ((BaseInfo *) node, channel, &error)) + if (!dbus_binding_tool_output_glib_server ((BaseInfo *) node, channel, prefix, &error)) lose_gerror (_("Compilation failed"), error); break; case DBUS_BINDING_OUTPUT_GLIB_CLIENT: -- cgit