[Linux-HA] Re: Swig bindings in heartbeat config/build

Alan Robertson alanr at unix.sh
Mon Mar 21 17:14:27 MST 2005


forrest whitcher wrote:
> Lars,
> 
> Ok. so the bindings exist only for low-level functions, now that I've
> kicked the tires
> some on using the API, (have a service and clients connecting to
> heartbeat and sending
> intelligible messages) .. A few things are clearer.
> 
> Mostly I would not want to try to implement from the cl-plumbing layer.
> 
> However the API is clearly tightly bound to Glib2 for the use of
> 'mainloop'. Glib::MainLoop
> is available through CPAN, but I'm not clear how feasible it's going
> to be to use swig to
> export something that depends so heavily on a CPAN module.
> 
> Can you cite any thoughts why this will (or will not) be feasible? --
> If it's going to take
> more than a week's work then I'd probably have to just stick with C.
> 
> Thanks if you have any thoughts

The API does not require mainloop in any way.  It's a convenient way to use 
it, and often quite nice, but it is not required.

-- 
     Alan Robertson <alanr at unix.sh>

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce


More information about the Linux-HA mailing list