[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: =?gb2312?B?tPC4tDogVGhlIGRidXNfbWVzc2FnZV9oYXNfaW50ZXJmYWNlIG1ldGhvZCBy?= =?gb2312?B?ZXR1cm4gZmFsc2U
From: <liutiegang () navchina ! com>
Date: 2017-02-27 7:08:39
Message-ID: 6BB430FE47A846408EB8D43CCF11AA9AAAB9B9 () BD-MailBox02 ! navchina ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
Dear all,
Attached is my session.conf file.
Thanks.
Tiegang
·¢¼þÈË: ÁõÌúî¸
·¢ËÍʱ¼ä: 2017Äê2Ô 27ÈÕ 15:02
ÊÕ¼þÈË: 'dbus@lists.freedesktop.org'
Ö÷Ìâ: The dbus_message_has_interface method return false, my service can't start, \
please help!
Dear all,
I am investigating on DBUS porting on QNX. DBus-daemon can be run now.
And then I download the dbus-example.c on http://www.matthew.ath.cx/misc/dbus. \
Compile and run dbus_example_g.
My running steps are:
1. #DBUS_VERSION=1 dbus-daemon --print-address \
--config-file=/home/test/dbus/share/dbus-1/session.conf --nofork &
2. #export DBUS_SESSION_BUS_ADDRESS=unix:path=/home/test/dbus/temp/dbus-WmaQFMvqxD,guid=7a9055f9b14393e3276108b958b3b792
3. #./dbus_example_g receive
In daemon process, I got the null connection, I debug into the source code, find the \
following clue, please see the red lines. dbus_message_has_interface (DBusMessage \
*message, const char *iface)
{
const char *msg_interface;
msg_interface = dbus_message_get_interface (message); // msg_interface is \
Org.freedesktop.dbus.local, but iface is org.freedesktop.dbus.peer
if (msg_interface == NULL)
{
if (iface == NULL)
{
return TRUE;
}
else
{
return FALSE;
}
}
if (iface == NULL)
{
return FALSE;
}
if (strcmp (msg_interface, iface) == 0) \
//org.freedesktop.dbus.local!=org.freedesktop.dbus.peer return TRUE;
return FALSE;
}
So
static DBusHandlerResult
_dbus_connection_peer_filter_unlocked_no_update (DBusConnection *connection,
DBusMessage *message)
{
¡¡
if (!dbus_message_has_interface (message, DBUS_INTERFACE_PEER))
{
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; //quit, so the following Ping and \
GetMachineId can¡¯t be run! }
¡¡
if (dbus_message_is_method_call (message,
DBUS_INTERFACE_PEER,
"Ping"))
{
¡¡
}
else if (dbus_message_is_method_call (message,
DBUS_INTERFACE_PEER,
"GetMachineId"))
{
¡¡
}
Any help will be appreciated.
Thanks!
Tiegang
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:21.0pt;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:218978948;
mso-list-type:hybrid;
mso-list-template-ids:-1317630970 285014110 67698713 67698715 67698703 67698713 \
67698715 67698703 67698713 67698715;} @list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-text:"%2\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:42.0pt;
text-indent:-21.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:63.0pt;
text-indent:-21.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:84.0pt;
text-indent:-21.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-text:"%5\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:105.0pt;
text-indent:-21.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:126.0pt;
text-indent:-21.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:147.0pt;
text-indent:-21.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-text:"%8\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:168.0pt;
text-indent:-21.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:189.0pt;
text-indent:-21.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Dear \
all,<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#1F497D"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="color:#1F497D">Attached is my session.conf \
file.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#1F497D"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="color:#1F497D">Thanks.<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="color:#1F497D">Tiegang<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p> <p \
class="MsoNormal"><a name="_MailEndCompose"><span lang="EN-US" \
style="color:#1F497D"><o:p> </o:p></span></a></p> <div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span \
style="font-size:10.0pt;font-family:ËÎÌå">·¢¼þÈË<span \
lang="EN-US">:</span></span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:ËÎÌå"> </span><span \
style="font-size:10.0pt;font-family:ËÎÌå">ÁõÌúî¸<span lang="EN-US"> <br> \
</span><b>·¢ËÍʱ¼ä<span lang="EN-US">:</span></b><span lang="EN-US"> \
2017</span>Äê<span lang="EN-US">2</span>Ô <span lang="EN-US">27</span>ÈÕ<span \
lang="EN-US"> 15:02<br> </span><b>ÊÕ¼þÈË<span lang="EN-US">:</span></b><span \
lang="EN-US"> 'dbus@lists.freedesktop.org'<br> </span><b>Ö÷Ìâ<span \
lang="EN-US">:</span></b><span lang="EN-US"> The dbus_message_has_interface method \
return false, my service can't start, please help!<o:p></o:p></span></span></p> \
</div> </div>
<p class="MsoNormal" align="left" style="text-align:left"><span \
lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US">Dear all,<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">I \
am investigating on DBUS porting on QNX. DBus-daemon can be run now. \
<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US">And then I download \
the dbus-example.c on <a \
href="http://www.matthew.ath.cx/misc/dbus">http://www.matthew.ath.cx/misc/dbus</a>. \
Compile and run dbus_example_g.<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">My \
running steps are:<o:p></o:p></span></p> <p class="MsoListParagraph" \
style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2"> <![if \
!supportLists]><span lang="EN-US"><span style="mso-list:Ignore">1.<span \
style="font:7.0pt "Times New Roman""> \
</span></span></span><![endif]><span lang="EN-US">#DBUS_VERSION=1 dbus-daemon \
--print-address --config-file=/home/test/dbus/share/dbus-1/session.conf --nofork \
&<o:p></o:p></span></p> <p class="MsoListParagraph" \
style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2"> <![if \
!supportLists]><span lang="EN-US"><span style="mso-list:Ignore">2.<span \
style="font:7.0pt "Times New Roman""> \
</span></span></span><![endif]><span lang="EN-US">#export \
DBUS_SESSION_BUS_ADDRESS=unix:path=/home/test/dbus/temp/dbus-WmaQFMvqxD,guid=7a9055f9b14393e3276108b958b3b792<o:p></o:p></span></p>
<p class="MsoListParagraph" \
style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2"> <![if \
!supportLists]><span lang="EN-US"><span style="mso-list:Ignore">3.<span \
style="font:7.0pt "Times New Roman""> \
</span></span></span><![endif]><span lang="EN-US">#./dbus_example_g \
receive<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US">In daemon \
process, I got the null connection, I debug into the source code, find the following \
clue, please see the <span style="color:red">red lines.</span><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">dbus_message_has_interface (DBusMessage \
*message,</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> &nb \
sp;
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">const</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">char</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> *iface)</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">{</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">const</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">char</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
*msg_interface;</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:red">msg_interface \
= dbus_message_get_interface (message); // msg_interface is \
<i>Org.freedesktop.dbus.local, but iface is \
org.freedesktop.dbus.peer</i></span></b><b><i><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></i></b></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">if</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
(msg_interface == NULL)</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> {</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">if</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> (iface == \
NULL)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> {</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">return</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
TRUE;</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> }</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">else</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> {</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">return</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
FALSE;</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> }</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> }</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p> </o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">if</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> (iface == \
NULL)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
{</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">return</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
FALSE;</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New""><o:p> </o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:red"> if \
(strcmp (<u>msg_interface</u>, iface) == 0) \
//org.freedesktop.dbus.local!=org.freedesktop.dbus.peer<o:p></o:p></span></b></p> <p \
class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">return</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
TRUE;</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New""><o:p> </o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:red">return FALSE; </span></b><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></b></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New""><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">}</span><span lang="EN-US"><o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US">So<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><b><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">static</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
DBusHandlerResult</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">_dbus_connection_peer_filter_unlocked_no_update \
(DBusConnection *connection,</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> &nb \
sp;   \
; \
DBusMessage *message)</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">{</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> \
¡¡<o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">if</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
(!dbus_message_has_interface (message, DBUS_INTERFACE_PEER))</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> {</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:red">return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; //quit, so the \
following </span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#2A00FF">Ping</span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:red"> and \
</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#2A00FF">GetMachineId </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:red">can¡¯t be \
run!<o:p></o:p></span></b></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-indent:19.2pt;text-autospace:none"> <span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">}<o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
¡¡</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New""><o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-autospace:none"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">if</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
(dbus_message_is_method_call (message,</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> &nb \
sp; \
DBUS_INTERFACE_PEER,</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> &nb \
sp; \
</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#2A00FF">"Ping"</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">))</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" \
style="text-align:left;text-indent:19.2pt;text-autospace:none"> <span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">{<o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-indent:19.2pt;text-autospace:none"> <span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">¡¡</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> }</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> </span><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">else</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#7F0055">if</span></b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New";color:black"> \
(dbus_message_is_method_call (message,</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> &nb \
sp;   \
; \
DBUS_INTERFACE_PEER,</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"> &nb \
sp;   \
; \
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:#2A00FF">"GetMachineId"</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">))</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal" align="left" \
style="text-align:left;text-indent:19.2pt;text-autospace:none"> <span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">{<o:p></o:p></span></p> <p class="MsoNormal" align="left" \
style="text-align:left;text-indent:19.2pt;text-autospace:none"> <span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">¡¡</span><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p> \
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black">}<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">Any help will be appreciated. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Courier \
New";color:black"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">Thanks!<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Courier \
New";color:black">Tiegang<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p> </o:p></span></p> </div>
</body>
</html>
["session.conf" (application/octet-stream)]
[Attachment #7 (text/plain)]
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic