<br><tt><font size=2>"Daniel P. Berrange" <berrange@redhat.com>
wrote on 03/26/2010 04:44:49 PM:<br>
<br>
> On Fri, Mar 26, 2010 at 02:41:30PM -0400, Stefan Berger wrote:<br>
> > "Daniel P. Berrange" <berrange@redhat.com> wrote
on 03/26/2010 02:04:26 <br>
> > PM:<br>
> > <br>
[...]<br>
> > > <br>
> > > has a dependancy on the driver implementation nwfilter/<br>
> > > nwfilter_gentech_driver.h<br>
> > > which is not good. The 'conf' directory is only allowed
to depend on <br>
> > stuff <br>
> > > in util/, or itself, never depend on driver code.<br>
> > <br>
> > <br>
> > From nwfilter_conf.c I call several functions of the <br>
> > nwfilter_gentech_driver.c from within an iterator callback function.
Is <br>
> > the general right solution for this to have nwfilter_gentech_driver.c
<br>
> > register an interface with nwfilter_conf.c that provides the
addresses of <br>
> > those functions call from within nwfilter_conf.c now? If so,
I think I <br>
> > could pass the callback function to the nwfilter_conf.c and move
the <br>
> > actual callback function in nwfilter_gentech_driver.c and pass
its address <br>
> > via the initialization function I call in nwfilter_conf.c from
<br>
> > nwfilter_gentech_driver.c.<br>
> <br>
> Cool, that sounds like a good plan</font></tt>
<br>
<br><tt><font size=2>Posted the patch that does that on Friday.</font></tt>
<br>
<br><tt><font size=2>Regards,</font></tt>
<br><tt><font size=2>   Stefan</font></tt>
<br>
<br><tt><font size=2><br>
> <br>
> Regards,<br>
> Daniel<br>
> -- <br>
> |: Red Hat, Engineering, London    -o-   </font></tt><a href=http://people.redhat.com/berrange/:|><tt><font size=2>http://people.redhat.com/berrange/:|</font></tt></a><tt><font size=2><br>
> |: </font></tt><a href=http://libvirt.org/><tt><font size=2>http://libvirt.org</font></tt></a><tt><font size=2>
-o- </font></tt><a href="http://virt-manager.org/"><tt><font size=2>http://virt-manager.org</font></tt></a><tt><font size=2>
-o- </font></tt><a href=http://deltacloud.org:|/><tt><font size=2>http://deltacloud.org:|</font></tt></a><tt><font size=2><br>
> |: </font></tt><a href=http://autobuild.org/><tt><font size=2>http://autobuild.org</font></tt></a><tt><font size=2>
       -o-         </font></tt><a href=http://search.cpan.org/~danberr/:|><tt><font size=2>http://search.cpan.org/~danberr/:|</font></tt></a><tt><font size=2><br>
> |: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1
B3DF F742 7D3B 9505 :|<br>
</font></tt>