mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
util: Use a semicolon for all VIR_DEFINE_AUTOPTR_FUNC
For consistency, let's use the semicolon for all definitions. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
5846179a2e
commit
73b9b8fe36
@ -90,7 +90,7 @@ qemuMigrationParamsNew(void);
|
||||
|
||||
void
|
||||
qemuMigrationParamsFree(qemuMigrationParamsPtr migParams);
|
||||
VIR_DEFINE_AUTOPTR_FUNC(qemuMigrationParams, qemuMigrationParamsFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(qemuMigrationParams, qemuMigrationParamsFree);
|
||||
|
||||
int
|
||||
qemuMigrationParamsApply(virQEMUDriverPtr driver,
|
||||
|
@ -41,6 +41,6 @@ int virAuthConfigLookup(virAuthConfigPtr auth,
|
||||
const char *credname,
|
||||
const char **value);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virAuthConfig, virAuthConfigFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virAuthConfig, virAuthConfigFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRAUTHCONFIG_H */
|
||||
|
@ -154,6 +154,6 @@ void virBitmapSubtract(virBitmapPtr a, virBitmapPtr b)
|
||||
|
||||
void virBitmapShrink(virBitmapPtr map, size_t b);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBitmap, virBitmapFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBitmap, virBitmapFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRBITMAP_H */
|
||||
|
@ -661,7 +661,7 @@ virBufferEscapePairFree(virBufferEscapePairPtr pair)
|
||||
VIR_FREE(pair);
|
||||
}
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBufferEscapePair, virBufferEscapePairFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBufferEscapePair, virBufferEscapePairFree);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -119,6 +119,6 @@ int virBufferGetIndent(const virBuffer *buf, bool dynamic);
|
||||
void virBufferTrim(virBufferPtr buf, const char *trim, int len);
|
||||
void virBufferAddStr(virBufferPtr buf, const char *str);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBuffer, virBufferFreeAndReset)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBuffer, virBufferFreeAndReset);
|
||||
|
||||
#endif /* LIBVIRT_VIRBUFFER_H */
|
||||
|
@ -219,6 +219,6 @@ int virCommandRunNul(virCommandPtr cmd,
|
||||
virCommandRunNulFunc func,
|
||||
void *data);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRCOMMAND_H */
|
||||
|
@ -206,6 +206,6 @@ bool virLastErrorIsSystemErrno(int errnum);
|
||||
void virErrorPreserveLast(virErrorPtr *saveerr);
|
||||
void virErrorRestore(virErrorPtr *savederr);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virError, virFreeError)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virError, virFreeError);
|
||||
|
||||
#endif /* LIBVIRT_VIRERROR_H */
|
||||
|
@ -383,7 +383,7 @@ int virFileInData(int fd,
|
||||
int *inData,
|
||||
long long *length);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virFileWrapperFd, virFileWrapperFdFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virFileWrapperFd, virFileWrapperFdFree);
|
||||
|
||||
int virFileGetXAttr(const char *path,
|
||||
const char *name,
|
||||
|
@ -115,6 +115,6 @@ int virFirewallApply(virFirewallPtr firewall);
|
||||
|
||||
void virFirewallSetLockOverride(bool avoid);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRFIREWALL_H */
|
||||
|
@ -197,6 +197,6 @@ void *virHashSearch(const virHashTable *table, virHashSearcher iter,
|
||||
/* Convenience for when VIR_FREE(value) is sufficient as a data freer. */
|
||||
void virHashValueFree(void *value, const void *name);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virHashTable, virHashFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virHashTable, virHashFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRHASH_H */
|
||||
|
@ -158,6 +158,6 @@ char *virJSONStringReformat(const char *jsonstr, bool pretty);
|
||||
|
||||
virJSONValuePtr virJSONValueObjectDeflatten(virJSONValuePtr json);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virJSONValue, virJSONValueFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virJSONValue, virJSONValueFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRJSON_H */
|
||||
|
@ -64,6 +64,6 @@ bool virMacAddrIsMulticast(const virMacAddr *addr);
|
||||
bool virMacAddrIsBroadcastRaw(const unsigned char s[VIR_MAC_BUFLEN]);
|
||||
void virMacAddrFree(virMacAddrPtr addr);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMacAddr, virMacAddrFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMacAddr, virMacAddrFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRMACADDR_H */
|
||||
|
@ -137,7 +137,7 @@ int
|
||||
virMediatedDeviceTypeReadAttrs(const char *sysfspath,
|
||||
virMediatedDeviceTypePtr *type);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMediatedDevice, virMediatedDeviceFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMediatedDeviceType, virMediatedDeviceTypeFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMediatedDevice, virMediatedDeviceFree);
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virMediatedDeviceType, virMediatedDeviceTypeFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRMDEV_H */
|
||||
|
@ -121,7 +121,7 @@ virNetDevMcastEntryFree(virNetDevMcastEntryPtr entry)
|
||||
VIR_FREE(entry);
|
||||
}
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevMcastEntry, virNetDevMcastEntryFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevMcastEntry, virNetDevMcastEntryFree);
|
||||
|
||||
typedef struct _virNetDevMcastList virNetDevMcastList;
|
||||
typedef virNetDevMcastList *virNetDevMcastListPtr;
|
||||
|
@ -311,6 +311,6 @@ int virNetDevSysfsFile(char **pf_sysfs_device_link,
|
||||
int virNetDevRunEthernetScript(const char *ifname, const char *script)
|
||||
ATTRIBUTE_NOINLINE;
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevRxFilter, virNetDevRxFilterFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevRxFilter, virNetDevRxFilterFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEV_H */
|
||||
|
@ -94,7 +94,7 @@ void virNetDevIPInfoClear(virNetDevIPInfoPtr ip);
|
||||
int virNetDevIPInfoAddToDev(const char *ifname,
|
||||
virNetDevIPInfo const *ipInfo);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPAddr, virNetDevIPAddrFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPRoute, virNetDevIPRouteFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPAddr, virNetDevIPAddrFree);
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPRoute, virNetDevIPRouteFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVIP_H */
|
||||
|
@ -48,6 +48,6 @@ void virNetDevVlanFree(virNetDevVlanPtr vlan);
|
||||
int virNetDevVlanEqual(const virNetDevVlan *a, const virNetDevVlan *b);
|
||||
int virNetDevVlanCopy(virNetDevVlanPtr dst, const virNetDevVlan *src);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevVlan, virNetDevVlanFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetDevVlan, virNetDevVlanFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRNETDEVVLAN_H */
|
||||
|
@ -63,7 +63,7 @@ typedef struct nl_handle virNetlinkHandle;
|
||||
typedef struct nl_sock virNetlinkHandle;
|
||||
# endif
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetlinkHandle, virNetlinkFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetlinkHandle, virNetlinkFree);
|
||||
|
||||
typedef struct _virNetlinkEventSrvPrivate virNetlinkEventSrvPrivate;
|
||||
typedef virNetlinkEventSrvPrivate *virNetlinkEventSrvPrivatePtr;
|
||||
|
@ -37,7 +37,7 @@
|
||||
# endif
|
||||
|
||||
typedef struct nl_msg virNetlinkMsg;
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetlinkMsg, nlmsg_free)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virNetlinkMsg, nlmsg_free);
|
||||
|
||||
# else
|
||||
|
||||
|
@ -271,8 +271,8 @@ ssize_t virPCIGetMdevTypes(const char *sysfspath,
|
||||
|
||||
void virPCIDeviceAddressFree(virPCIDeviceAddressPtr address);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPCIDevice, virPCIDeviceFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPCIDeviceAddress, virPCIDeviceAddressFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPCIEDeviceInfo, virPCIEDeviceInfoFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPCIDevice, virPCIDeviceFree);
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPCIDeviceAddress, virPCIDeviceAddressFree);
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPCIEDeviceInfo, virPCIEDeviceInfoFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRPCI_H */
|
||||
|
@ -82,6 +82,6 @@ int virPerfReadEvent(virPerfPtr perf,
|
||||
virPerfEventType type,
|
||||
uint64_t *value);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPerf, virPerfFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virPerf, virPerfFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRPERF_H */
|
||||
|
@ -248,7 +248,7 @@ virSCSIDeviceUsedByInfoFree(virUsedByInfoPtr used_by)
|
||||
VIR_FREE(used_by->domname);
|
||||
VIR_FREE(used_by);
|
||||
}
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virUsedByInfo, virSCSIDeviceUsedByInfoFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virUsedByInfo, virSCSIDeviceUsedByInfoFree);
|
||||
|
||||
void
|
||||
virSCSIDeviceFree(virSCSIDevicePtr dev)
|
||||
|
@ -93,6 +93,6 @@ void virSCSIDeviceListDel(virSCSIDeviceListPtr list,
|
||||
virSCSIDevicePtr virSCSIDeviceListFind(virSCSIDeviceListPtr list,
|
||||
virSCSIDevicePtr dev);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virSCSIDevice, virSCSIDeviceFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virSCSIDevice, virSCSIDeviceFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRSCSI_H */
|
||||
|
@ -61,6 +61,6 @@ void virSCSIVHostDeviceGetUsedBy(virSCSIVHostDevicePtr dev,
|
||||
void virSCSIVHostDeviceFree(virSCSIVHostDevicePtr dev);
|
||||
int virSCSIVHostOpenVhostSCSI(int *vhostfd) ATTRIBUTE_NOINLINE;
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virSCSIVHostDevice, virSCSIVHostDeviceFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virSCSIVHostDevice, virSCSIVHostDeviceFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRSCSIVHOST_H */
|
||||
|
@ -160,6 +160,6 @@ int virSocketAddrPTRDomain(const virSocketAddr *addr,
|
||||
|
||||
void virSocketAddrFree(virSocketAddrPtr addr);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virSocketAddr, virSocketAddrFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virSocketAddr, virSocketAddrFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRSOCKETADDR_H */
|
||||
|
@ -307,6 +307,6 @@ int virStringParsePort(const char *str,
|
||||
unsigned int *port)
|
||||
ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virString, virStringListFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virString, virStringListFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRSTRING_H */
|
||||
|
@ -96,6 +96,6 @@ void virUSBDeviceListDel(virUSBDeviceListPtr list,
|
||||
virUSBDevicePtr virUSBDeviceListFind(virUSBDeviceListPtr list,
|
||||
virUSBDevicePtr dev);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virUSBDevice, virUSBDeviceFree)
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virUSBDevice, virUSBDeviceFree);
|
||||
|
||||
#endif /* LIBVIRT_VIRUSB_H */
|
||||
|
Loading…
Reference in New Issue
Block a user