fixed invoke_noreply call generation

This commit is contained in:
Andreas Volz 2008-10-15 23:08:20 +02:00
parent c923153861
commit d0c41b03ff
2 changed files with 6 additions and 6 deletions

View file

@ -49,6 +49,7 @@ static const char *header = "\n\
static const char *dbus_includes = "\n\ static const char *dbus_includes = "\n\
#include <dbus-c++/dbus.h>\n\ #include <dbus-c++/dbus.h>\n\
#include <cassert>\n\n\
\n\ \n\
"; ";
@ -538,18 +539,17 @@ void generate_proxy(Xml::Document &doc, const char *filename)
cerr << "Function: " << method.get("name") << ":" << endl; cerr << "Function: " << method.get("name") << ":" << endl;
cerr << "Option 'org.freedesktop.DBus.Method.NoReply' not allowed for methods with 'out' variables!" << endl << "-> Option ignored!" << 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 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 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) if (args_out.size() > 0)
{ {