mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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 <clalance@redhat.com>
This commit is contained in:
parent
f36eb6935d
commit
60d05f7321
@ -2212,10 +2212,6 @@ int virConnectDomainEventRegisterAny(virConnectPtr conn,
|
|||||||
int virConnectDomainEventDeregisterAny(virConnectPtr conn,
|
int virConnectDomainEventDeregisterAny(virConnectPtr conn,
|
||||||
int callbackID);
|
int callbackID);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virNWFilter:
|
* virNWFilter:
|
||||||
@ -2279,4 +2275,8 @@ int virNWFilterGetUUIDString (virNWFilterPtr nwfilter,
|
|||||||
char * virNWFilterGetXMLDesc (virNWFilterPtr nwfilter,
|
char * virNWFilterGetXMLDesc (virNWFilterPtr nwfilter,
|
||||||
int flags);
|
int flags);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __VIR_VIRLIB_H__ */
|
#endif /* __VIR_VIRLIB_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user