libvirt/src/util
Michal Privoznik 4a09c143f6 virerror: Make it easier to add new error number
In v5.0.0-rc1~94 we switched from one huge switch() to an array
for translating error numbers into error messages. However, the
array is declared to have VIR_ERR_NUMBER_LAST items which makes
it impossible to spot this place by compile checking when adding
new error number.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2020-01-10 13:53:32 +01:00
..
glibcompat.c util: introduce compile time API version checking 2020-01-07 14:42:26 +00:00
glibcompat.h util: add compat impl of g_canonicalize_filename 2020-01-07 14:42:26 +00:00
iohelper.c util: introduce virFileDataSync 2020-01-03 15:42:12 +00:00
Makefile.inc.am util: Introduce virNVMeDevice module 2019-12-17 10:04:43 +01:00
viralloc.c util: use glib memory allocation functions 2019-10-14 10:54:42 +01:00
viralloc.h util: alloc: drop xalloc_oversized macro 2019-10-24 19:35:34 +02:00
virarch.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virarch.h
virarptable.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virarptable.h
viratomic.c
viratomic.h maint: Update to latest gnulib 2019-08-08 07:31:03 -05:00
viraudit.c Use g_strdup_vprintf() instead of virVasprintf() everywhere 2019-11-12 16:15:59 +01:00
viraudit.h Use G_GNUC_PRINTF instead of ATTRIBUTE_FMT_PRINTF 2019-10-15 16:14:18 +02:00
virauth.c util: Don't check the output of virGetUserConfigDirectory() 2019-12-20 09:38:43 +01:00
virauth.h
virauthconfig.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virauthconfig.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virbitmap.c use g_ascii_isdigit instead of c_isdigit frum gnulib 2019-12-10 13:49:24 +01:00
virbitmap.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virbpf.c virbpf: Fix typecast to __aligned_u64 type 2019-11-18 08:59:13 +01:00
virbpf.h util: introduce virbpf helpers 2019-11-15 12:58:00 +01:00
virbuffer.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virbuffer.h util: buffer: remove virBufferSetChildIndent 2019-11-13 09:10:30 +01:00
vircgroup.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
vircgroup.h qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
vircgroupbackend.c
vircgroupbackend.h vircgroup: workaround devices in hybrid mode 2019-11-15 12:58:43 +01:00
vircgrouppriv.h vircgroup: introduce virCgroupV2DevicesAttachProg 2019-11-15 12:58:05 +01:00
vircgroupv1.c src: use g_lstat() instead of lstat() 2020-01-03 15:42:13 +00:00
vircgroupv1.h
vircgroupv2.c vircgroup: workaround devices in hybrid mode 2019-11-15 12:58:43 +01:00
vircgroupv2.h
vircgroupv2devices.c vircgroupv2devices: Avoid double close on map FD 2020-01-06 17:30:17 +01:00
vircgroupv2devices.h vircgroupv2devices: Unexport virCgroupV2DevicesAttachProg() 2020-01-06 17:30:17 +01:00
virclosecallbacks.c
virclosecallbacks.h
vircommand.c Remove all the uses that use subtraction in their length argument 2019-12-12 14:24:35 +01:00
vircommand.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
vircommandpriv.h
virconf.c util: Don't check the output of virGetUserConfigDirectory() 2019-12-20 09:38:43 +01:00
virconf.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
vircrypto.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
vircrypto.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virdbus.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virdbus.h Revert "dbus: correctly build reply message" 2019-09-10 09:47:13 +02:00
virdbuspriv.h
virdevmapper.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virdevmapper.h
virdnsmasq.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virdnsmasq.h
virebtables.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virebtables.h
virendian.h
virenum.c
virenum.h Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virerror.c virerror: Make it easier to add new error number 2020-01-10 13:53:32 +01:00
virerror.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virerrorpriv.h
virevent.c util: add note about event file descriptors on Windows 2020-01-03 15:42:12 +00:00
virevent.h event: add API for requiring an event loop impl to be registered 2019-12-18 14:04:59 +00:00
vireventpoll.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
vireventpoll.h
virfcp.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virfcp.h
virfdstream.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virfdstream.h
virfile.c util, resctrl: using 64bit interface instead of 32bit for counters 2020-01-06 13:30:03 +00:00
virfile.h util, resctrl: using 64bit interface instead of 32bit for counters 2020-01-06 13:30:03 +00:00
virfilecache.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virfilecache.h
virfirewall.c Use g_strdup_vprintf() instead of virVasprintf() everywhere 2019-11-12 16:15:59 +01:00
virfirewall.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virfirewalld.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virfirewalld.h
virfirewalldpriv.h
virfirewallpriv.h
virfirmware.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virfirmware.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
virgettext.c
virgettext.h
virgic.c
virgic.h
virhash.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virhash.h util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virhashcode.c Use G_GNUC_FALLTHROUGH instead of ATTRIBUTE_FALLTHROUGH 2019-10-15 16:14:19 +02:00
virhashcode.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virhook.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virhook.h
virhostcpu.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virhostcpu.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virhostcpupriv.h
virhostdev.c util: Don't check the output of virGetUserRuntimeDirectory() 2019-12-20 09:38:43 +01:00
virhostdev.h virhostdev: Include virNVMeDevice module 2019-12-17 10:04:43 +01:00
virhostmem.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virhostmem.h
virhostuptime.c virhostuptime: Introduce virHostBootTimeInit() 2020-01-07 17:00:10 +01:00
virhostuptime.h virhostuptime: Introduce virHostBootTimeInit() 2020-01-07 17:00:10 +01:00
viridentity.c util: convert virIdentity class to use GObject 2019-10-14 10:54:42 +01:00
viridentity.h util: convert virIdentity class to use GObject 2019-10-14 10:54:42 +01:00
virinitctl.c util: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virinitctl.h
viriptables.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
viriptables.h network: allow DHCP/DNS/TFTP explicitly in OUTPUT rules 2019-10-18 18:49:54 +01:00
viriscsi.c Remove all the uses that use subtraction in their length argument 2019-12-12 14:24:35 +01:00
viriscsi.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virjson.c Remove the rest of VIR_STRNDUP 2019-12-12 14:24:35 +01:00
virjson.h util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virkeycode.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virkeycode.h
virkeyfile.c Remove the rest of VIR_STRNDUP 2019-12-12 14:24:35 +01:00
virkeyfile.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virkmod.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virkmod.h
virlease.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virlease.h
virlockspace.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virlockspace.h
virlog.c util: replace gethostname() with g_get_hostname() 2020-01-03 15:42:13 +00:00
virlog.h util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virmacaddr.c use g_ascii_tolower instead of c_tolower from gnulib 2019-12-10 13:49:24 +01:00
virmacaddr.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virmacmap.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virmacmap.h
virmdev.c src: replace last_component() with g_path_get_basename() 2020-01-03 15:42:13 +00:00
virmdev.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virmodule.c util: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virmodule.h
virnetdev.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetdev.h conf: make virDomainNetGetActualVlan arg/return val const 2019-11-25 15:29:46 -05:00
virnetdevbandwidth.c conf: make virDomainNetGetActualBandwidth arg/return value const 2019-11-25 15:29:51 -05:00
virnetdevbandwidth.h conf: make virDomainNetGetActualBandwidth arg/return value const 2019-11-25 15:29:51 -05:00
virnetdevbridge.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virnetdevbridge.h util: set bridge device MAC address explicitly during virNetDevBridgeCreate 2019-11-07 22:09:19 -05:00
virnetdevip.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virnetdevip.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virnetdevmacvlan.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetdevmacvlan.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevmidonet.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevmidonet.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevopenvswitch.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevopenvswitch.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevtap.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetdevtap.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevveth.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virnetdevveth.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virnetdevvlan.c
virnetdevvlan.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virnetdevvportprofile.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetdevvportprofile.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetlink.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetlink.h m4: virt-libnl: drop libnl-1.0 support 2019-10-23 14:30:47 +02:00
virnodesuspend.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virnodesuspend.h
virnuma.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virnuma.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virnvme.c util: Introduce virNVMeDevice module 2019-12-17 10:04:43 +01:00
virnvme.h virhostdev: Include virNVMeDevice module 2019-12-17 10:04:43 +01:00
virobject.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virobject.h util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virpci.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virpci.h virpci: Introduce virPCIDeviceAddressCopy 2019-12-17 10:04:43 +01:00
virperf.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virperf.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virpidfile.c util: Don't check the output of virGetUserRuntimeDirectory() 2019-12-20 09:38:43 +01:00
virpidfile.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virpolkit.c util: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virpolkit.h
virportallocator.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virportallocator.h
virprobe.h
virprocess.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virprocess.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virqemu.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virqemu.h
virrandom.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virrandom.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virresctrl.c util, resctrl: using 64bit interface instead of 32bit for counters 2020-01-06 13:30:03 +00:00
virresctrl.h util, resctrl: using 64bit interface instead of 32bit for counters 2020-01-06 13:30:03 +00:00
virresctrlpriv.h
virrotatingfile.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virrotatingfile.h
virscsi.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virscsi.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virscsihost.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virscsihost.h
virscsivhost.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virscsivhost.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virseclabel.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virseclabel.h
virsecret.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virsecret.h
virsocketaddr.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virsocketaddr.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virstorageencryption.c virstorage: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:58 +02:00
virstorageencryption.h
virstoragefile.c util: storage: Link to knowledge base when reporting missing image backing format 2020-01-10 12:49:03 +01:00
virstoragefile.h virstoragefile: Introduce virStorageSourceChainHasNVMe 2019-12-17 10:04:43 +01:00
virstoragefilebackend.c
virstoragefilebackend.h
virstring.c util: remove VIR_STRDUP and VIR_STRNDUP 2019-12-12 14:24:35 +01:00
virstring.h util: remove VIR_STRDUP and VIR_STRNDUP 2019-12-12 14:24:35 +01:00
virsysinfo.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virsysinfo.h util: Get rid of "no_memory" labels 2019-12-20 17:02:40 -05:00
virsysinfopriv.h
virsystemd.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
virsystemd.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virsystemdpriv.h util: cache the result of whether logind is available 2019-08-14 16:22:13 +02:00
virthread.c util: remove some no-op thread functions 2019-09-19 12:50:21 +01:00
virthread.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virthreadjob.c
virthreadjob.h
virthreadpool.c
virthreadpool.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virtime.c util: time: Fix comment for virTimeFieldsNow 2020-01-06 10:33:35 +01:00
virtime.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virtpm.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virtpm.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virtypedparam-public.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virtypedparam.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virtypedparam.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
viruri.c util: Get rid of "no_memory" labels 2019-12-20 17:02:40 -05:00
viruri.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virusb.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virusb.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virutil.c util: replace gethostname() with g_get_hostname() 2020-01-03 15:42:13 +00:00
virutil.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
viruuid.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
viruuid.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virvhba.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virvhba.h
virvsock.c util: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virvsock.h
virxdrdefs.h
virxml.c util: xml: Make virXMLFormatElement void 2019-10-24 19:35:34 +02:00
virxml.h util: xml: Make virXMLFormatElement void 2019-10-24 19:35:34 +02:00