WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] C binding

To: <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] C binding
From: "Avramidis, Diogenis" <Diogenis.Avramidis@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2007 10:57:27 +0200
Delivery-date: Wed, 18 Apr 2007 01:56:36 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=CvStYUDMRfXxS539S6Xrk8Ss+e/9yh+ineNtZ0RJhE0w+qKXDM8GBX0LBUVPhPdlZYGJmBwpeZR28hN3xt77jPP2ONkvsxVjZQ6yhoLhYJTVw42JqQhCffK7kMBTPV6N;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceBl5bYIb7JOI6zR/eV43WerDbpsw==
Thread-topic: C binding
Hello!

I have compiled test_event_handling.c and have run the test. It works fine 
except for the fact that I do not know exactly in which cases events are sent. 
For that purpose Hans-Juergen Kasek has already posted a message to the mailing 
list.

But I'm especially interested in the test program. There all classes are 
registered for the session with the event system.

    struct xen_string_set *classes = xen_string_set_alloc(0);
    xen_event_register(session, classes);
    xen_string_set_free(classes);

Because I want to register only the class host, I replace this code by

    struct xen_string_set *classes;
    classes =  xen_string_set_alloc(1);
    classes->size = 1;
    classes->contents[0] = xen_strdup_("host");
    xen_event_register(session, classes);
    xen_string_set_free(classes);

Running the test I receive the error message

Error: 2 TRANSPORT_FAULT 52

Did I make a mistake or is there an error in the C binding? In an interactive 
session (using the python XML-RPC client library) it is possible to register 
only the class host.

Cheers,

Diogenis



_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] C binding, Avramidis, Diogenis <=