From nobody Mon Feb 9 04:30:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635493249; cv=none; d=zohomail.com; s=zohoarc; b=fi0ZhZ8fMH/hUfC0SBL0FYZHhcT08INCxaLTqvNcYkF6kghDIYPzixv2/bickJ629UIvLJdDwzjbzSi1rlk1MYA+wP4NEtPUYppEKLkucmreqNBVawW/ofG+8+zwhpH9k2xSJgQcdaESJ4MxwP8Bbimpc5zeqog4i/zV/IjhToE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635493249; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FoVghXVkm8/Ag8OM8vyMgGLJpsmnraSzV5TMK6LatEE=; b=gtg1+cSweFviOPlr4T3fGUeo8OQ8mv2FxhzHDiYXWm8/nOvTML3drvfI9NC7IpWXX+rzzgr3E0G+x9uJw7CFIk0LveY3PhoiluNVkhON5DqNbCa2eWY9sAyLXeYBMly9mskWnqSs4E81pG4ZPzDy3TqVlnrMD6XL6K9MMKlsMAk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1635493249452211.4848255316989; Fri, 29 Oct 2021 00:40:49 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-4ivgzqFmOWaPGPgmjNbExA-1; Fri, 29 Oct 2021 03:40:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E6FF8802B61; Fri, 29 Oct 2021 07:40:39 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C80905DF5F; Fri, 29 Oct 2021 07:40:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 957D74E58E; Fri, 29 Oct 2021 07:40:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 19T7eXZA011028 for ; Fri, 29 Oct 2021 03:40:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 650C26911C; Fri, 29 Oct 2021 07:40:33 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2C35E1981F for ; Fri, 29 Oct 2021 07:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635493248; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FoVghXVkm8/Ag8OM8vyMgGLJpsmnraSzV5TMK6LatEE=; b=da3SCnlf1RlOxtJPJl+dC/MdfF7eErVO0l3R1rc1oVQZws9iH5HX2X29G10bUUr9E/VS5h d2WUMDodthD4xcmCn1QV+hGJ0lDbJK071Qx0ywz0X7L8Elgd/vcRETYPp+sKPdl2doHIFm 9KwXlkoXb9Z+njhBs/VPVsMF77DcF+s= X-MC-Unique: 4ivgzqFmOWaPGPgmjNbExA-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 3/4] qemu_agent: Drop destroy callback Date: Fri, 29 Oct 2021 09:40:22 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1635493250689100001 Content-Type: text/plain; charset="utf-8" After previous cleanups this callback is unused. Remove it. Signed-off-by: Michal Privoznik --- src/qemu/qemu_agent.h | 2 -- src/qemu/qemu_process.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/src/qemu/qemu_agent.h b/src/qemu/qemu_agent.h index 81b45b8e5d..b5954e76e7 100644 --- a/src/qemu/qemu_agent.h +++ b/src/qemu/qemu_agent.h @@ -28,8 +28,6 @@ typedef struct _qemuAgent qemuAgent; =20 typedef struct _qemuAgentCallbacks qemuAgentCallbacks; struct _qemuAgentCallbacks { - void (*destroy)(qemuAgent *mon, - virDomainObj *vm); void (*eofNotify)(qemuAgent *mon, virDomainObj *vm); void (*errorNotify)(qemuAgent *mon, diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index b1fd72d269..ba9e9a5aa0 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -193,17 +193,8 @@ qemuProcessHandleAgentError(qemuAgent *agent G_GNUC_UN= USED, virObjectUnlock(vm); } =20 -static void qemuProcessHandleAgentDestroy(qemuAgent *agent, - virDomainObj *vm) -{ - VIR_DEBUG("Received destroy agent=3D%p vm=3D%p", agent, vm); - - virObjectUnref(vm); -} - =20 static qemuAgentCallbacks agentCallbacks =3D { - .destroy =3D qemuProcessHandleAgentDestroy, .eofNotify =3D qemuProcessHandleAgentEOF, .errorNotify =3D qemuProcessHandleAgentError, }; --=20 2.32.0