<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>OK, Thanks</div><div><br></div><div>How about listing interfaces for a VM(<span class="Apple-style-span" style="font-family: arial; font-size: 13px; ">vir<b>Domain</b>ListInterfaces </span>)</div><div>will you accept such an API?</div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Daniel Veillard <veillard@redhat.com><br><b><span style="font-weight: bold;">To:</span></b> Shahar Klein <shaharklein@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> libvir-list@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, September
 14, 2009 4:25:37 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [libvirt] Python binding to virConnectListInterfaces<br></font><br>On Mon, Sep 14, 2009 at 03:26:01AM -0700, Shahar Klein wrote:<br>> <br>> <br>> Hi<br>> <br>> I'm trying to implement virConnectListInterfaces for the ESX driver<br>> (actually the esx_interface driver)<br>> but the python generator does not write the code for this function<br><br>  yes, basically it doesn't know how to handle char **const names<br>parameter.<br><br>> in generator.py this function is in a special table called: skip_impl<br>> <br>> and there is a comment saying:<br>> # Class methods which are written by hand in libvir.c but the Python-level<br>> # code is still automatically generated (so they are not in skip_function())<br>> <br>> I'm not sure what does it mean <br><br>  add the function name there so that the generator won't try to add
 the<br>bindings<br><br>> should I implement in libvir.c? <br><br> yes and<br><br>> and I'm done?<br><br> add an entry for the function in python/libvirt-python-api.xml<br>that's an XML description of the intefaces fow which bindings are<br>implemented manually.<br> I guess if you have the 3 you should be all set. See for example<br>how virConnectListDomains is handled, that should be fairly similar<br>except with strings.<br><br>Daniel<br><br>-- <br>Daniel Veillard      | libxml Gnome XML XSLT toolkit  <a href="http://xmlsoft.org/" target="_blank">http://xmlsoft.org/</a><br><a ymailto="mailto:daniel@veillard.com" href="mailto:daniel@veillard.com">daniel@veillard.com</a>  | Rpmfind RPM search engine <a href="http://rpmfind.net/" target="_blank">http://rpmfind.net/</a><br><a href="http://veillard.com/" target="_blank">http://veillard.com/</a> | virtualization library  <a href="http://libvirt.org/"
 target="_blank">http://libvirt.org/</a><br></div></div><div style="position:fixed"></div></div><br>

      </body></html>