<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial size=2><SPAN
class=500535714-29052008><SPAN class=589273415-29052008>Hi
All,</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial size=2><SPAN
class=500535714-29052008><SPAN
class=589273415-29052008></SPAN></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008>I have written the D-Bus Server Side
Code.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008>I have implemented the D-Bus methods and
signals.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008>In Any D-Bus method call, I have to provide the first
argument of that method call is ProxyObject.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008>Also, one of the argument is GError
error.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008>But, in the defination ( implementation ) of this D-Bus
method call, I am not using these two parameters : ProxyObject ,
error.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=500535714-29052008>gboolean D-Bus_method_call
( DBusGPRoxy* PRoxyObject, guchar* RetStatus, GError*
error )</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=500535714-29052008>{</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=500535714-29052008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=500535714-29052008>}</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><SPAN
class=500535714-29052008></SPAN>When I make using warning flags set,
</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial size=2>it gives the below
warnings which is related to the "D-Bus Proxy Object and error " at some
locations, </FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT size=2><FONT
color=#0000ff><SPAN class=500535714-29052008>file</SPAN>.c: In
function <SPAN class=500535714-29052008>'D-Bus method
call"</SPAN>:<BR><SPAN class=500535714-29052008>file</SPAN>.c:<SPAN
class=500535714-29052008>22</SPAN>: warning: unused parameter
'proxyObj'<BR><SPAN class=500535714-29052008>file</SPAN>.c:<SPAN
class=500535714-29052008>22</SPAN>: warning: unused parameter
'error'</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><BR> </DIV></SPAN>
<DIV><SPAN class=453405410-29052008></SPAN><SPAN class=453405410-29052008><FONT
face=Arial size=2>Because thesse are the D-Bus method calls parameters and these
method calls require this "proxy object".</FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial size=2>Should we remove
these warnings ?</FONT></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><SPAN class=500535714-29052008><FONT
face=Arial size=2>I have one fix for this as below : </FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><SPAN class=500535714-29052008><FONT
face=Arial size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><SPAN class=500535714-29052008><FONT
face=Arial size=2>As soon as I entered the D-Bus method call, I will check
ProxyObject using below api :</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><SPAN class=500535714-29052008><FONT
face=Arial color=#0000ff size=3><PRE><SPAN id=l2367><DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff size=2><SPAN class=500535714-29052008>gboolean D-Bus_method_call ( DBusGPRoxy* PRoxyObject, guchar* RetStatus, GError* error )</SPAN></FONT></FONT></SPAN></DIV><DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff size=2><SPAN class=500535714-29052008>{</SPAN></FONT></FONT></SPAN></DIV><DIV><SPAN class=453405410-29052008><FONT face=Arial><FONT color=#0000ff size=2><SPAN class=500535714-29052008></SPAN></FONT></FONT></SPAN>g_return_val_if_fail (DBUS_IS_G_PROXY (ProxyObject), FALSE); // FALSE is return value of D-Bus method</SPAN></DIV></PRE><PRE><SPAN><SPAN class=cclhl id=l67><SPAN id=l58>dbus_error_init (error);</SPAN></PRE><PRE><PRE>if (<B class=cchl id=m0>dbus_error_is_set</B> (error)) // checking the error is set or not </SPAN></PRE><PRE><SPAN class=cclhl>{
</SPAN><SPAN id=l68> printf ("%s\n",</SPAN><SPAN id=l69> error);
</SPAN><SPAN id=l70> dbus_error_free (error);
</SPAN><SPAN id=l71>}</SPAN></PRE><PRE><SPAN>return TRUE; </SPAN></PRE><PRE><SPAN>}</SPAN></PRE></SPAN></FONT></SPAN></SPAN></PRE></DIV>
<DIV><SPAN class=453405410-29052008><SPAN class=500535714-29052008><FONT
face=Arial size=2>Pls, correct me if I am wrong anywhere ? Or let me know this
approach is correct.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=453405410-29052008><SPAN class=500535714-29052008><FONT
face=Arial size=2></FONT><FONT face=Arial
size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=453405410-29052008><FONT face=Arial
size=2></FONT></SPAN> </DIV></DIV>
<DIV align=left><FONT color=#0000ff size=2><STRONG>Thanks and
Regards,</STRONG></FONT></DIV>
<DIV align=left><FONT color=#0000ff size=2><STRONG>Sumeet
Pawnikar</STRONG></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=v color=#8000ff><EM>The future belongs to those who
believe in the beauty of their dreams.</EM></FONT></DIV>
<DIV align=left> </DIV>
<DIV> </DIV><P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>
<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</BODY></HTML>