diff options
| author | Andreas Volz <andreas@optolix.mittelerde> | 2008-10-15 23:08:20 +0200 |
|---|---|---|
| committer | Andreas Volz <andreas@optolix.mittelerde> | 2008-10-15 23:08:20 +0200 |
| commit | d0c41b03ff4d5845e3a348d2e938f0fd5f285b2d (patch) | |
| tree | 62c4e05a0180d2c717b3a5f2afd86f4b7a198e69 /tools/xml2cpp.cpp | |
| parent | c923153861b7574db572380ae23a57bf2317db97 (diff) | |
| download | dbus-c++-d0c41b03ff4d5845e3a348d2e938f0fd5f285b2d.tar.gz | |
fixed invoke_noreply call generation
Diffstat (limited to 'tools/xml2cpp.cpp')
| -rw-r--r-- | tools/xml2cpp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/xml2cpp.cpp b/tools/xml2cpp.cpp index 69f4efa..dcde076 100644 --- a/tools/xml2cpp.cpp +++ b/tools/xml2cpp.cpp @@ -49,6 +49,7 @@ static const char *header = "\n\ static const char *dbus_includes = "\n\ #include <dbus-c++/dbus.h>\n\ +#include <cassert>\n\n\ \n\ "; @@ -538,18 +539,17 @@ void generate_proxy(Xml::Document &doc, const char *filename) cerr << "Function: " << method.get("name") << ":" << endl; cerr << "Option 'org.freedesktop.DBus.Method.NoReply' not allowed for methods with 'out' variables!" << endl << "-> Option ignored!" << endl; - body << tab << tab << "::DBus::Message ret = invoke_method"; + body << tab << tab << "::DBus::Message ret = invoke_method (call);" << endl; } else { - body << tab << tab << "::DBus::Message ret = invoke_method_noreply"; + body << tab << tab << "assert (invoke_method_noreply (call));" << endl; // will only assert in case of no memory } } else { - body << tab << tab << "::DBus::Message ret = invoke_method"; + body << tab << tab << "::DBus::Message ret = invoke_method (call);" << endl; } - body << "(call);" << endl; if (args_out.size() > 0) { |
