<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>--- On <b>Sat, 6/27/09, Graduation Project <i><graduation_project_2009@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Graduation Project <graduation_project_2009@yahoo.com><br>Subject: Re: help needed<br>To: "Maciej Grela" <maciej..grela@gmail.com><br>Date: Saturday, June 27, 2009, 7:34 PM<br><br><div id="yiv1014548365"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit;">--- On <b>Fri, 6/26/09, Maciej Grela <i><maciej.grela@gmail.com></i></b> wrote:<br><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: Maciej Grela <maciej.grela@gmail.com><br>Subject: Re: help needed<br>To:
"Graduation Project" <graduation_project_2009@yahoo.com><br>Date: Friday, June 26, 2009, 4:37 PM<br><br><div class="plainMail">2009/6/26 Graduation Project <<a rel="nofollow">graduation_project_2009@yahoo.com</a>>:<br>> hi,<br>> we are students at cairo university, we are writing some modules for the<br>> new open solaris OS as agraduation project , we need to use the HAL in our<br>> modules (to
get list of devices attached to computer, enable driver ,<br>> disable driver, ...), however we can't find any tutorial for using libhal on<br>> the internet. so if you can guide us to such tutorial (we prefer python, but<br>> c++ is also OK) we will be very thankful.<br>> thank you.<br>><br><br>Have you found this info written by the guy who ported HAL to opensolaris ?<br><br><a rel="nofollow" target="_blank" href="http://opensolaris.org/os/project/tamarack/hal_re.html">http://opensolaris.org/os/project/tamarack/hal_re.html</a><br><br>Br,<br>Maciej Grela</div></blockquote>thanks alot for your help, <div> we have read the link, but we still need some documentation about the Method calls of the hal manager (some detailed explanation of what each available method does exactly)</div><div>for example: what type of o/p does this code produce (e.g. array of strings?), and what other method calls are there that we can use for
different
purposes</div><div><span class="Apple-style-span" style="font-family:-webkit-monospace;font-size:10px;"><pre class="de1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;color:black;background-color:initial;line-height:normal;font:normal normal normal 1em/1.2em monospace;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-image:none;vertical-align:top;"><br></pre><pre class="de1"
style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;color:black;background-color:initial;line-height:normal;font:normal normal normal 1em/1.2em monospace;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-image:none;vertical-align:top;">bus = dbus.<span class="me1" style="color:black;">SystemBus</span><span class="br0" style="color:black;">(</span><span class="br0" style="color:black;">)</span>
hal_manager_object = bus.<span class="me1" style="color:black;">get_object</span><span class="br0" style="color:black;">(</span><span class="st0" style="color:rgb(72, 61, 139);">'org.freedesktop.Hal'</span>, <span class="st0" style="color:rgb(72, 61, 139);">'/org/freedesktop/Hal/Manager'</span><span class="br0" style="color:black;">)</span>
hal_manager_interface = dbus.<span class="me1" style="color:black;">Interface</span><span class="br0" style="color:black;">(</span>hal_manager_object, <span class="st0" style="color:rgb(72, 61, 139);">'org.freedesktop.Hal.Manager'</span><span class="br0" style="color:black;">)</span>
<span class="kw1" style="color:rgb(255, 119, 0);font-weight:bold;">print</span> hal_manager_interface.<span class="me1" style="color:black;">GetAllDevices</span><span class="br0" style="color:black;">(</span><span class="br0" style="color:black;">)</span></pre></span><div> <br><br></div></div></td></tr></tbody></table><br>
</div></blockquote></td></tr></table><br>