From 60d05f7321bf1953e0e803ae16a371e162476e6f Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Mon, 24 May 2010 11:55:55 -0400 Subject: [PATCH] Allow nwfilter functions to be compiled with C++ Unfortunately the NWFilter functions were outside of the "extern C { ... }" declaration in include/libvirt/libvirt.h.in, which means that they couldn't be properly used with C++. Move them inside of the braces, which should fix the problem. Signed-off-by: Chris Lalancette --- include/libvirt/libvirt.h.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 1ff7df0303..19d5205885 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -2212,10 +2212,6 @@ int virConnectDomainEventRegisterAny(virConnectPtr conn, int virConnectDomainEventDeregisterAny(virConnectPtr conn, int callbackID); -#ifdef __cplusplus -} -#endif - /** * virNWFilter: @@ -2279,4 +2275,8 @@ int virNWFilterGetUUIDString (virNWFilterPtr nwfilter, char * virNWFilterGetXMLDesc (virNWFilterPtr nwfilter, int flags); +#ifdef __cplusplus +} +#endif + #endif /* __VIR_VIRLIB_H__ */