Re: [libvirt] [PATCH 0/2] Domain event example C code misues api

2013-05-10 Thread Michal Privoznik
On 09.05.2013 23:17, Jesse J. Cook wrote: From: Jesse J. Cook jc...@camber.com The example program makes a call to virEventRegisterDefaultImpl before calling virConnectOpen without a call to virInitialize. Interestingly enough, the example code works. However, once you introduce a call to

[libvirt] [PATCH 0/2] Domain event example C code misues api

2013-05-09 Thread Jesse J. Cook
From: Jesse J. Cook jc...@camber.com The example program makes a call to virEventRegisterDefaultImpl before calling virConnectOpen without a call to virInitialize. Interestingly enough, the example code works. However, once you introduce a call to g_string_new it breaks. This can result in