Hi, I developped a code, which use dbus, I inserted in my code an introspection, but while running it I obtain an error of segmentation<br>this is a part of code where is the problem:<br> static const char introspect_xml[] =<br>
"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n"<br> " \"<a href="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd</a>\">\n"<br>
"<node>\n"<br> " <interface name=\"ch.cett.misse.ffmpeg\">\n"<br> " <method name=\"image_rate_get\">\n"<br> " <arg name=\"port\" direction=\"out\" type=\"u\"/>\n"<br>
" </method>\n"<br> " </interface>\n"<br> "</node>\n";<br> reply = dbus_message_new_method_return(msg);<br> if (!dbus_message_append_args (reply,<br>
DBUS_TYPE_STRING, &introspect_xml,<br> DBUS_TYPE_INVALID))<br> {<br> fprintf(stderr, "Out Of Memory!\n");<br> exit(1);<br>
}<br><br> if (!dbus_connection_send(conn, reply, &serial)) <br> {<br> fprintf(stderr, "Out Of Memory!\n");<br> exit(1);<br> }<br><br>I think the problem is with DBUS_TYPE_STRING, which type I have to use<br>
thank you<br>