Displaying 8 results from an estimated 8 matches for "libvirt_eventloop_thr_func".
2013 Oct 14
2
event handler
good day to all.
i still have not solved my problem with event handling.
currently i have following code
void libvirt_eventloop_thr_func()
{
while(true) //TODO: stop somehow on exit
{
if(virEventRunDefaultImpl() < 0)
{
virErrorPtr err = virGetLastError();
fprintf(stderr, "Failed to run event loop: %s\n", err && err->message
? err->message : "Unknown error");
}
}
}
...
virSetE...
2013 Oct 14
2
Re: event handler
Michal Privoznik писал 2013-10-14 08:48:
> On 14.10.2013 02:42, Alexandr wrote:
>> good day to all.
>> i still have not solved my problem with event handling.
>> currently i have following code
>>
>>
>> void libvirt_eventloop_thr_func()
>> {
>> while(true) //TODO: stop somehow on exit
>> {
>> if(virEventRunDefaultImpl() < 0)
>> {
>> virErrorPtr err = virGetLastError();
>> fprintf(stderr, "Failed to run event loop: %s\n", err &a...
2013 Oct 14
2
Re: event handler
...l Privoznik писал 2013-10-14 08:48:
>>> On 14.10.2013 02:42, Alexandr wrote:
>>>> good day to all.
>>>> i still have not solved my problem with event handling.
>>>> currently i have following code
>>>>
>>>>
>>>> void libvirt_eventloop_thr_func()
>>>> {
>>>> while(true) //TODO: stop somehow on exit
>>>> {
>>>> if(virEventRunDefaultImpl() < 0)
>>>> {
>>>> virErrorPtr err = virGetLastError();
>>>> fprintf(st...
2013 Aug 22
1
Re: virConnectDomainEventRegisterAny problem
...other
connections (virt-manager) at all (i am sure that connection url are
same for both connections), my code follows:
static int domain_event_handler(virConnectPtr conn, virDomainPtr dom,
int event, int detail, void * opaque)
{
std::cout<<"domain event handler called\n";
}
void libvirt_eventloop_thr_func()
{
while(true) //TODO: stop somehow on exit
{
if(virEventRunDefaultImpl() < 0)
{
virErrorPtr err = virGetLastError();
fprintf(stderr, "Failed to run event loop: %s\n", err &&
err->message ? err->message : "Unknown error");
}
}
}
....
virSetErro...
2013 Oct 14
0
Re: event handler
On 14.10.2013 02:42, Alexandr wrote:
> good day to all.
> i still have not solved my problem with event handling.
> currently i have following code
>
>
> void libvirt_eventloop_thr_func()
> {
> while(true) //TODO: stop somehow on exit
> {
> if(virEventRunDefaultImpl() < 0)
> {
> virErrorPtr err = virGetLastError();
> fprintf(stderr, "Failed to run event loop: %s\n", err &&
> err->messag...
2013 Oct 14
0
Re: event handler
...33, Alexandr wrote:
> Michal Privoznik писал 2013-10-14 08:48:
>> On 14.10.2013 02:42, Alexandr wrote:
>>> good day to all.
>>> i still have not solved my problem with event handling.
>>> currently i have following code
>>>
>>>
>>> void libvirt_eventloop_thr_func()
>>> {
>>> while(true) //TODO: stop somehow on exit
>>> {
>>> if(virEventRunDefaultImpl() < 0)
>>> {
>>> virErrorPtr err = virGetLastError();
>>> fprintf(stderr, "Failed to run ev...
2013 Oct 14
0
Re: event handler
...14 08:48:
>>>> On 14.10.2013 02:42, Alexandr wrote:
>>>>> good day to all.
>>>>> i still have not solved my problem with event handling.
>>>>> currently i have following code
>>>>>
>>>>>
>>>>> void libvirt_eventloop_thr_func()
>>>>> {
>>>>> while(true) //TODO: stop somehow on exit
>>>>> {
>>>>> if(virEventRunDefaultImpl() < 0)
>>>>> {
>>>>> virErrorPtr err = virGetLastError();
>>>>...
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 21.08.2013 09:46, Alexandr пишет:
> > 21.08.2013 09:32, Martin Kletzander пишет:
> >> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
> >>>
> >>> good day. i trying to make callback function for
> >>>