>
> Okay, with qemu:///session I'm getting CloseCallback but now I'm not
> getting LifecycleCallback :(
>
> S pozdravom / Best regards
> Daniel Kucera.
>
Okay, I take it back. It works.
S pozdravom / Best regards
Daniel Kucera.
___
libvirt-users mailing
2017-05-17 15:52 GMT+02:00 Daniel P. Berrange :
> 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 wor
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 :
> On Wed, May 17, 2017 at 03:41:09PM +0200, Daniel Kučera wrote:
> > Hi Dan
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
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 libvirt_close_callback(conn *libvirt.Connect, reason
> libvirt.ConnectCloseReason){
> log.Printf("close callback: %+v", reason)
> }
>
> func event_listen() {
> log.P
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(con
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)
>
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
*li