mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
qemu: domain: Unexport qemuDomainObjTaintMsg
The function is used only inside qemu_domain.c, unexport it and move it above its user. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
9134b40d0b
commit
6ecd218109
@ -6638,20 +6638,12 @@ qemuDomainDefFormatLive(virQEMUDriver *driver,
|
||||
}
|
||||
|
||||
|
||||
void qemuDomainObjTaint(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt)
|
||||
{
|
||||
qemuDomainObjTaintMsg(driver, obj, taint, logCtxt, NULL);
|
||||
qemuDomainSaveStatus(obj);
|
||||
}
|
||||
|
||||
void qemuDomainObjTaintMsg(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt,
|
||||
const char *fmt, ...)
|
||||
static void G_GNUC_PRINTF(5, 6)
|
||||
qemuDomainObjTaintMsg(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
virErrorPtr orig_err = NULL;
|
||||
g_autofree char *timestamp = NULL;
|
||||
@ -6725,6 +6717,16 @@ void qemuDomainObjTaintMsg(virQEMUDriver *driver,
|
||||
virErrorRestore(&orig_err);
|
||||
}
|
||||
|
||||
|
||||
void qemuDomainObjTaint(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt)
|
||||
{
|
||||
qemuDomainObjTaintMsg(driver, obj, taint, logCtxt, NULL);
|
||||
qemuDomainSaveStatus(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
qemuDomainObjCheckMachineTaint(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
|
@ -629,13 +629,6 @@ void qemuDomainObjTaint(virQEMUDriver *driver,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt);
|
||||
|
||||
void qemuDomainObjTaintMsg(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt,
|
||||
const char *msg,
|
||||
...) G_GNUC_PRINTF(5, 6);
|
||||
|
||||
char **qemuDomainObjGetTainting(virQEMUDriver *driver,
|
||||
virDomainObj *obj);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user