Re: [Vala] More problems with vala-dbus-binding-tool



Rename "parameters" to something else in the generated .vala. Indeed vala
should not use such a generic name for the generated code. Feel free to
report a bug.


On Sun, Feb 23, 2014 at 10:37 PM, rastersoft <raster rastersoft com> wrote:

Here it is.

El 23/02/14 14:10, Luca Bruno escribió:

Paste the generated vapi.


On Sun, Feb 23, 2014 at 1:16 PM, rastersoft <raster rastersoft com>
wrote:

 Hi again:

I fixed the problem in the last message: I forgot to add --gdbus. Now I
have a problem with the C code: when I extract the interfaces with for
"org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager" (using
org.freedesktop.DBus.Introspectable.Introspect), I compile it with Vala
and receive this message:

/home/raster/workspace/autovala/install/src/dbus_
generated/org.freedesktop.ConsoleKit/org/freedesktop/
ConsoleKit/Manager/org-freedesktop-consolekit.c:

  In function '_dbus_org_freedesktop_console_kit_manager_sync_open_
session_with_parameters':
/home/raster/workspace/autovala/install/src/dbus_
generated/org.freedesktop.ConsoleKit/org/freedesktop/
ConsoleKit/Manager/org-freedesktop-consolekit.c:3107:54:
error: 'parameters' redeclared as different kind of symbol
orgfreedesktopConsoleKitManagerSyncParameterStruct* parameters = NULL;

/home/raster/workspace/autovala/install/src/dbus_
generated/org.freedesktop.ConsoleKit/org/freedesktop/
ConsoleKit/Manager/org-freedesktop-consolekit.c:3104:143: note: previous
definition of 'parameters' was here
static void _dbus_org_freedesktop_console_kit_manager_sync_open_session_
with_parameters
(orgfreedesktopConsoleKitManagerSync* self, GVariant* parameters,
GDBusMethodInvocation* invocation) {

Any idea?

Thanks.

--
Nos leemos
                          RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list




--
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com




-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]