<br><br><div class="gmail_quote">Hi,<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p style=""><font size="1" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   
<font color="blue"><span style="color: blue;">DBusMessage *msg;</span></font></span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    DBusMessageIter args;</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;"> </span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    /* create a signal &amp; check for errors */</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    msg = dbus_message_new_signal(ObjectName, // object name of the signal</span></font></p>

<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">                                  InterfaceName, // interface name of the signal</span></font></p>

<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">                                  MessageName); // name of the signal</span></font></p>

<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;"> </span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    if (NULL == msg)
</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    {
</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">        fprintf(stderr, &quot;Message Null\n&quot;);
</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    }</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    dbus_message_iter_init(msg, &amp;args); </span></font></p></div></div></blockquote>
<div><br> --- Are you using this iterator? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US">
<div><p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">
</span></font></p>
<p><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;"> </span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    // send the message and flush the connection</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    if (!dbus_connection_send(conn, msg, &amp;serial))
</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    {</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">        fprintf(stderr, &quot;Out Of Memory!\n&quot;);</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">        exit(1);</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    }</span></font></p>
<p style=""><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    dbus_connection_flush(conn);</span></font></p>
<p><font size="1" color="blue" face="Courier New"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;">    dbus_message_unref(msg);</span></font><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue;"></span></font></p>

<p><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue;"></span></font></p></div></div></blockquote><div>-- Br<br>Naveen <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue;"> </span></font></p>
</div>
<br>
<hr>
<font size="1" color="Gray" face="Arial"><a href="http://www.mindtree.com/email/disclaimer.html" target="_blank">http://www.mindtree.com/email/disclaimer.html</a><br>
</font>
</div>

<br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br>