[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] C binding


  • To: <xen-api@xxxxxxxxxxxxxxxxxxx>
  • 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;
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.