search for: event_listen

Displaying 9 results from an estimated 9 matches for "event_listen".

Did you mean: event_list
2017 May 17
2
Callback re-registration after libvirtd restart
Hi all, I'm using libvirt-go and I following code to listen for lifecycle events: func event_listen() { log.Printf("event_listen %s", conf.Libvirt.LocalUrl) hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) lifecycleCallback := func(c *libvirt.Connect, d *libvirt.Domain, event *libvirt.DomainEventLifecycle) { event_message(c, d, "lifecycle", event)...
2017 May 17
2
Re: Callback re-registration after libvirtd restart
Hi Daniel, I tried that but it doesn't work: func libvirt_close_callback(conn *libvirt.Connect, reason libvirt.ConnectCloseReason){ log.Printf("close callback: %+v", reason) } func event_listen() { log.Printf("event_listen %s", conf.Libvirt.LocalUrl) hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) err = hv.RegisterCloseCallback(libvirt_close_callback) if err != nil { log.Printf("unable to register close callback") return } ......
2017 May 17
2
Re: Callback re-registration after libvirtd restart
No, I'm not, I'm calling it sooner: func libvirt_start() { libvirt.EventRegisterDefaultImpl() event_listen() } S pozdravom / Best regards Daniel Kucera. 2017-05-17 15:47 GMT+02:00 Daniel P. Berrange <berrange@redhat.com>: > On Wed, May 17, 2017 at 03:41:09PM +0200, Daniel Kučera wrote: > > Hi Daniel, > > > > I tried that but it doesn't work: > > > > func...
2017 May 17
0
Re: Callback re-registration after libvirtd restart
On Wed, May 17, 2017 at 03:08:23PM +0200, Daniel Kučera wrote: > Hi all, > > I'm using libvirt-go and I following code to listen for lifecycle events: > > func event_listen() { > log.Printf("event_listen %s", conf.Libvirt.LocalUrl) > hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) > > lifecycleCallback := func(c *libvirt.Connect, d *libvirt.Domain, event > *libvirt.DomainEventLifecycle) { > event_message(c, d, &quo...
2014 Jun 24
2
[LLVMdev] Any way get debug output of generated assembly from MCJIT without completely redoing CodeGen?
Yeah, that's probably how I'd do it. Might be useful if you guys want to contribute that as a command line option Kevin. -eric On Tue, Jun 24, 2014 at 3:03 PM, Kevin Modzelewski <kmod at dropbox.com> wrote: > We do this in Pyston using a JITEventListener that just disassembles the > output; it's "it works let's move on"-quality: >
2017 May 17
0
Re: Callback re-registration after libvirtd restart
...2017 at 03:41:09PM +0200, Daniel Kučera wrote: > Hi Daniel, > > I tried that but it doesn't work: > > func libvirt_close_callback(conn *libvirt.Connect, reason > libvirt.ConnectCloseReason){ > log.Printf("close callback: %+v", reason) > } > > func event_listen() { > log.Printf("event_listen %s", conf.Libvirt.LocalUrl) > hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) > > err = hv.RegisterCloseCallback(libvirt_close_callback) > if err != nil { > log.Printf("unable to register close callback&qu...
2017 May 17
0
Re: Callback re-registration after libvirtd restart
On Wed, May 17, 2017 at 03:49:45PM +0200, Daniel Kučera wrote: > No, I'm not, I'm calling it sooner: > > func libvirt_start() { > libvirt.EventRegisterDefaultImpl() > event_listen() > } Well the following example works as expected for me package main import ( "github.com/libvirt/libvirt-go" "log" ) func libvirt_close_callback(conn *libvirt.Connect, reason libvirt.ConnectCloseReason) { log.Printf("In here") } func main() { libvirt.Eve...
2017 May 17
1
Re: Callback re-registration after libvirtd restart
...5:52 GMT+02:00 Daniel P. Berrange <berrange@redhat.com>: > On Wed, May 17, 2017 at 03:49:45PM +0200, Daniel Kučera wrote: > > No, I'm not, I'm calling it sooner: > > > > func libvirt_start() { > > libvirt.EventRegisterDefaultImpl() > > event_listen() > > } > > Well the following example works as expected for me > > package main > > import ( > "github.com/libvirt/libvirt-go" > "log" > ) > > func libvirt_close_callback(conn *libvirt.Connect, reason > libvirt.ConnectCl...
2006 Jul 02
11
Google maps api in ruby/rails
I''ve been looking for any modules/tools that are available for using the google maps api in rails. I found a couple of quick examples, but not much more. If anyone knows of good sites that cover using google maps api in rails please post it here:) Chris