<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h4
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1><pre><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> <span lang=EN>Hello list,<o:p></o:p></span></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> I want to send an integer, a string and receive an array of bytes .This is a dbus-glib application. And the opposite application is qt application. I don’t have a way to receive and send from qt application .can any one please guide me<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'>On this.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'>This is the sending code in dbus-glib application. Quick reply will help me a lot.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'><o:p> </o:p></span></font></pre>
<h4><a name=glib-sending-stuff></a><b><font size=3 color=black
face="Times New Roman"><span lang=EN style='font-size:12.0pt'>Sending an
integer and string, receiving an array of bytes<o:p></o:p></span></font></b></h4>
<pre><font size=2 color=black face="Courier New"><span lang=EN
style='font-size:10.0pt'> GArray *arr;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> error = NULL;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> if (!dbus_g_proxy_call (proxy, "Foobar", &error,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> G_TYPE_INT, 42, G_TYPE_STRING, "hello",<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> G_TYPE_INVALID,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> DBUS_TYPE_G_UCHAR_ARRAY, &arr, G_TYPE_INVALID))<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> {<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> /* Handle error */<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> }<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> g_assert (arr != NULL);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'> printf ("got back %u values", arr->len);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'>with regards,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt'>Mukesh .<o:p></o:p></span></font></pre></div>
</body>
</html>