Skip to content

Instantly share code, notes, and snippets.

@rm5248
Created October 7, 2016 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rm5248/9677f7e57b4c6959aea7e06c50b3b4e5 to your computer and use it in GitHub Desktop.
Save rm5248/9677f7e57b4c6959aea7e06c50b3b4e5 to your computer and use it in GitHub Desktop.
Index: tools/arg.cpp
===================================================================
--- tools/arg.cpp (revision 213)
+++ tools/arg.cpp (working copy)
@@ -81,7 +81,8 @@
std::string Arg::stubsignature()
{
- return DBus::signature( type() );
+ //return DBus::signature( type() );
+ return DBus::type_string_from_code( type() );
}
DBus::Type Arg::type()
@nburkitt
Copy link

nburkitt commented Oct 7, 2016

Thanks! Sorry I failed to mention that the problem only affected the tools. I hate when bug reports miss details like that.
So the good news is that the tools now compile (thanks again). The bad news is that I still can't get them to do anything. Both dbus-cxx-introspect and dbus-cxx-xml2cpp produce no output, and never exit.
I was hoping to use dbus-cxx-xml2cpp to give me enough hints to figure out how to send user-defined objects over dbus - something which is not mentioned in any dbus-cxx documentation I've been able to find.
If you can point me in a direction that will help me with that question, the rest of it becomes moot.

-Nick

@nburkitt
Copy link

Okay - more good news/bad news. I finally traced the problem to libpopt, which is perfectly happy on my 64-bit development machine, but on my 32-bit target, insists that a char value of 0xff is non-negative. That will be the good news. The bad news (for me, at least) is that there is no information to be gleaned from the XML utilities regarding how to to send user-defined data as a dbus message.
Assuming it's not a state secret - can I have a hint? A clue? The tiniest scrap of documentation on how to accomplish this seemingly fundamental objective? Please?
Thanks,

-Nick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment