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

[Xen-API] Problem in "xen_event_record" structure


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: "chetan saundankar" <chetan.lists@xxxxxxxxx>
  • Date: Sat, 29 Dec 2007 01:17:26 +0530
  • Delivery-date: Fri, 28 Dec 2007 11:47:39 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=vjfVxaNPijG8HFl/m0p08JfpN7TtDg1nH/xUXZ7ZqCyiMwkq9JDSozZtHpbOyUfKRfzZfIaMzPwrGaBeJBRBpQ1Uh3ozIVaCJ9thhxuNiWTR1UC7Q/tTeAQWM4nuWJbfgQLlYuYoR8t9q1ouAuYg8YztCpxChxePT3As+x1Hqv0=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi,
Compilation of C++ user code with xen api header file "xen_event.h" fails because of a char* field named "class" in "xen_event_record" structure.

typedef struct xen_event_record
{
    int64_t id;
    time_t timestamp;
    char *class;
    enum xen_event_operation operation;
    char *ref;
    char *obj_uuid;
} xen_event_record;

I have also observed that " __cplusplus" macros are not used in the header files which requires caller to use extern "C" while using the library with C++ code.

Regards
Chetan

_______________________________________________
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®.