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

Re: [Xen-devel] [PATCH] libxc, libxenstore: make the headers C++-friendly



At 19:12 +0200 on 22 Jan (1358881935), Razvan Cojocaru wrote:
> >>+#ifdef __cplusplus
> >>+extern "C" {
> >>+#endif
> >>+
> >
> >The Xen public headers are in C, not C++. Doesn't this kind of
> >boilerplace belong in the C++ file that's trying to include a C header?
> 
> However, most well-behaved C libraries do that for all their headers.

xen/include/public is is not a library, it's the C API (and ABI) of the
hypervisor.  By all means make libxc/libxg/libxl C++-friendly if you
like, but please leave the hypervisor interface alone.

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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