James Harris
63c7175250
Remove warnings from generated adaptors.
...
This patch modifies the dbusxx-xml2cpp's generate_adaptor function so
that it prevents generation of the MessageIter ri in cases where an
interface method has no input arguments.
By making this element conditional based on the presence of input
arguments we avoid "unused-but-set-variable" warning in code that uses
the DBus-C++ adaptor glue headers.
Change-Id: I0f04439bf7b2b3cecb9d639e61c2b6dedc148e51
Type: Code Improvement
2014-03-19 12:52:16 +01:00
Andreas Volz
ca33a290df
changed variable to oneliner because of astyle parser bug
2011-11-29 22:54:16 +01:00
Andreas Volz
cee7aaca54
NO FUNCTIONAL CHANGES!!
...
Only reformated stupid astyle formating; it seems the code inside a string confused astyle...
2011-11-29 21:10:41 +01:00
Andreas Volz
1c8e43e6d6
- NO FUNCTIONAL CODE CHANGES!!!!
...
- changed code formating from tabs to spaces and others
- used astyle with this option:
--style=ansi --indent=spaces=2 -M --pad-oper --unpad-paren --pad-header --align-pointer=name --lineend=linux
2011-11-28 12:44:11 +01:00
Andreas Volz
b100e9d32a
replaced (func.size() > 1) with (!func.empty()) in generator (no change in functionality, only easier to read)
2011-11-28 11:55:44 +01:00
Andreas Volz
d1ec2544d5
sf.net bug: 3151031 xml2cpp needlessly includes and links dbus(-c++)
2011-11-28 00:32:34 +01:00
Andreas Volz
d14c15246b
[PATCH 12/15] Fix leftover outputs.
...
From: qolyester@green-communications.fr
2011-11-26 23:49:46 +01:00
Andreas Volz
fcae4df485
[PATCH 02/15] Remove useless const qualifiers on return
...
From: qolyester@green-communications.fr
2011-11-26 23:11:18 +01:00
Jesus Ruiz
d91fb952d3
Fix code generator: Put on the array only the next element after 'a'.
...
For example "(aii)" produced:
member(const ::DBus::Struct< std::vector< int32_t, int32_t > >& arg)
And now it produces:
member(const ::DBus::Struct< std::vector< int32_t >, int32_t >& arg)
2011-09-20 15:15:24 +02:00
Jesus Ruiz
21ba70529d
Fix code generator: add always a comma after each signature argument.
...
For example "((i)i)" produced:
member(const ::DBus::Struct< ::DBus::Struct< int32_t >int32_t >& arg)
And now it produces:
member(const ::DBus::Struct< ::DBus::Struct< int32_t >, int32_t >& arg)
2011-09-20 15:03:51 +02:00
Andreas Volz
cdedb019b0
- fixed Strcut generation in generator tool
...
- added some test cases
2011-02-15 23:58:42 +01:00
Andreas Volz
f9e5171ace
deleted some old commented code
2011-02-14 23:30:23 +01:00
Andreas Volz
796c96d34e
fixed SF bug:
...
ID: 2991229
Summary: nested type wrong generation
2011-02-14 23:27:32 +01:00
Andreas Volz
b23f1b2eab
From 37dbce02178757560c488f02016cb44770a7fafc Mon Sep 17 00:00:00 2001
...
From: thomas.himbacher <thomas.himbacher@gmail.com>
Date: Thu, 12 Aug 2010 18:13:26 +0200
Subject: [PATCH 1/3] removed wrong keyword const in adaptor generation
methods with several 'out' parameters have wrong
method signature with keywords 'const' for pass-by-reference
outputs.
2010-12-05 23:30:04 +01:00
Andreas Volz
f25787f2a0
still more formating... prepare for merge
2009-11-17 00:00:54 +01:00
Andreas Volz
a236363cce
formated with astyle for easier merging
2009-11-16 23:44:57 +01:00
Andreas Volz
7a8c64c2a6
some formating
2009-11-16 23:39:28 +01:00
Andreas Volz
d55e70a385
sync from fd.orf
2009-11-16 22:14:08 +01:00
Hubert Figuiere
340dc8a667
Fix most of the warnings with -Wextra -Wshadow
2009-07-24 15:59:36 -04:00
Andreas Volz
c1b76ad6a4
formating
2009-03-29 15:40:27 +02:00
Andreas Volz
f171e7ab1f
escape error
2009-03-29 14:27:04 +02:00
Andreas Volz
38e25a847f
only some comment
2009-03-29 14:19:05 +02:00
Andreas Volz
f88e32ba32
some header and include changes
2009-03-29 13:52:24 +02:00
Andreas Volz
b55f3cd36e
spaces
2009-03-28 23:15:44 +01:00
Andreas Volz
fbc0227d56
use extern variable
2009-03-28 23:01:26 +01:00
Andreas Volz
7424df631d
split into multiple files for better organization
2009-03-28 22:27:08 +01:00
Andreas Volz
3b3ffe166b
- stripped not needed code from /ecore-integration
...
- bugfix for xml2cpp generator with out parameters
2009-03-28 13:46:03 +01:00
Andreas Volz
d6e5ed5f9c
-Wall added
2009-01-06 22:56:25 +01:00
Andreas Volz
d0c41b03ff
fixed invoke_noreply call generation
2008-10-15 23:08:20 +02:00
Andreas Volz
c923153861
parse org.freedesktop.DBus.Method.NoReply tag correct
2008-10-12 23:07:52 +02:00
Andreas Volz
5c35a320a9
change name according to dbus spec
2008-10-08 00:27:54 +02:00
Andreas Volz
915f80174d
fixed generation of method out signature for multible parameters
2008-10-03 09:17:05 +02:00
Andreas Volz
46a1a2c591
formating of the output
2008-10-02 00:09:46 +02:00
Andreas Volz
96238313c3
changed object="xxx" structure to annotation structure
2008-10-01 23:54:18 +02:00
Andreas Volz
33ad5e86ba
moved methods to annotation syntax
2008-09-30 23:36:46 +02:00
Andreas Volz
c1c741cb0c
fixed a method generation bug with inarg
2008-09-13 20:07:58 +02:00
Andreas Volz
f353aae43e
implemented code generation of org.freedesktop.DBus.NoReply annotation
2008-09-12 00:25:37 +02:00
Andreas Volz
bbca1b0acc
adaptor code generator working
2008-09-03 00:16:51 +02:00
Andreas Volz
c43ba92e50
more object code
...
-> unmarshaler still not working in object case
2008-09-02 00:20:41 +02:00
Andreas Volz
30cec79d09
comments
2008-09-01 21:32:42 +02:00
Andreas Volz
c4b78722f3
method support for class
2008-09-01 00:31:25 +02:00
Andreas Volz
d6ce34b78c
better variable names
2008-08-31 20:22:03 +02:00
Andreas Volz
5f23f7d124
added object support for signal proxy
2008-08-31 14:14:04 +02:00
pd
085249dfbb
Fix previous patches to use standard types
2008-08-16 16:39:42 +02:00
pd
52ce50e944
Typo in xml2cpp.cpp
2008-08-16 16:26:28 +02:00
pd
dc4c91a924
added _proxy and _adaptor sufixes to generated interfaces class names (João Xavier)
2008-08-16 16:21:42 +02:00
pd
77f6d3cf8a
added writing of properties in xml2cpp.cpp (João Xavier)
2008-08-16 16:20:00 +02:00
pd
f0a9278511
Use standard types instead of typedefs wherever possible
2008-08-09 01:16:45 +02:00
pd
efc594f888
Time to get rid of the horrible coding style
2008-08-01 18:31:43 +02:00
pd
d83c57e59d
Fixed a gcc4 warning
2008-06-14 16:42:41 +02:00