libvirt/po
Eric Blake 6e130ddc4d maint: improve VIR_ERR_INVALID_DOMAIN usage
In datatype.c, virGetDomainSnapshot could result in the message:

error: invalid domain pointer in bad domain

Furthermore, while there are a few functions in libvirt.c that
only care about a virDomainPtr without regards to the connection
(such as virDomainGetName), most functions also require a valid
connection.  Yet several functions were blindly dereferencing
the conn member without checking it for validity first (such as
virDomainOpenConsole).  Rather than try and correct all usage
of VIR_IS_DOMAIN vs. VIR_IS_CONNECTED_DOMAIN, it is easier to
just blindly require that a valid domain object always has a
valid connection object (which should be true anyways, since
every domain object holds a reference to its connection, so the
connection will not be closed until all domain objects have
also been closed to release their reference).

After this patch, all places that validate a domain consistently
report:

error: invalid domain pointer in someFunc

* src/datatypes.h (virCheckDomainReturn, virCheckDomainGoto): New
macros.
* src/datatypes.c (virGetDomainSnapshot): Use new macro.
(virLibConnError): Delete unused macro.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-07 14:38:12 -07:00
..
af.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
am.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ar.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
as.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
be.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
bg.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
bn_IN.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
bn.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
bo.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
bs.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ca.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
cs.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
cy.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
da.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
de.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
el.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
en_GB.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
es.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
et.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
eu_ES.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
fa.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
fi.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
fr.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
gl.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
gu.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
he.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
hi.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
hr.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
hu.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
hy.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
id.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
is.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
it.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ja.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ka.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
kn.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ko.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ku.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
libvirt.pot Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
lo.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
lt.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
lv.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
mk.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ml.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
mr.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ms.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
my.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
nb.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
nl.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
nn.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
nso.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
or.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
pa.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
pl.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
POTFILES.in maint: improve VIR_ERR_INVALID_DOMAIN usage 2014-01-07 14:38:12 -07:00
pt_BR.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
pt.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ro.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ru.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
si.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
sk.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
sl.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
sq.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
sr.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
sr@latin.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
sv.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ta.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
te.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
th.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
tr.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
uk.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
ur.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
vi_VN.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
vi.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
zh_CN.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
zh_TW.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00
zu.po Release of libvirt-1.2.0 2013-12-02 12:17:51 +08:00