[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [Xen-API] [PATCH 2 of 4] xc: split xc non-upstream bindings into xcext module



Ian Campbell writes ("[Xen-devel] Re: [Xen-API] [PATCH 2 of 4] xc: split xc 
non-upstream bindings into xcext module"):
>       * Add functionality to libxc to allow it to dlopen a backend (e.g.
>         pointed to by an envvar) containing the hook implementation with
>         explicit calls to the layer as necessary.

I think this is the best approach.  You could put the hook function
pointers in the xc handle struct.

> Probably the second two are pretty much equivalent modulo the name of
> the environment variable being either LD_PRELOAD or something else.

LD_PRELOAD is a sledgehammer to crack a nut for this, I think.  Also,
I generally think that the existence of LD_PRELOAD should not be used
as an excuse for not providing a properly-supported interface.

Ian.

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.