]> xenbits.xensource.com Git - libvirt.git/commitdiff
Allow nwfilter functions to be compiled with C++
authorChris Lalancette <clalance@redhat.com>
Mon, 24 May 2010 15:55:55 +0000 (11:55 -0400)
committerChris Lalancette <clalance@redhat.com>
Tue, 25 May 2010 13:29:33 +0000 (09:29 -0400)
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 <clalance@redhat.com>
include/libvirt/libvirt.h.in

index 1ff7df0303f91dc51fce851ea77d7f046cb72afe..19d5205885c18e0a6ffaf7e48e0a34dc031863e0 100644 (file)
@@ -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__ */