From nobody Sun Feb 8 07:08:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1567500202; cv=none; d=zoho.com; s=zohoarc; b=CRlFLI7ZgGw1f8Bylqy+mvBbCOdBDBSqovijRIy5LUOdu/LUKZ9lT37buKCA/o6NY/IoAq641UKVUkAZum5QUevFQdyWRyhlumRmik+5mZY1HmCYy3PwOUytIBjofBmahII7yP7RWMkHpeg5bhvPcAK81Tz7Fx/EOeDAGfS+Buk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567500202; 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:ARC-Authentication-Results; bh=L+O0BRf/If185cimsgL0GILSE4cvpNhpGe8PlNC+x4o=; b=kdS/ZKn8k7EGgEMtOE93CbfOXmtWUzGsVN3TKIK2OvNO3nQPSy0IEAhzspYGb+7MUltG2SzHlOwnWvdT9iM7mPQQBmnsgYJiT9P214BwGm1M9EM8pamBAmt2NIfcR9PZpUj/00pE5R872KN7nDThfPrbDSCt//A/4zWm4BDKmmw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1567500202509130.64467402699063; Tue, 3 Sep 2019 01:43:22 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0FF8CA36F04; Tue, 3 Sep 2019 08:43:21 +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 D637860606; Tue, 3 Sep 2019 08:43:20 +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 947E124FDF; Tue, 3 Sep 2019 08:43:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x838hIMJ030065 for ; Tue, 3 Sep 2019 04:43:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id 847055D6D0; Tue, 3 Sep 2019 08:43:18 +0000 (UTC) Received: from lindworm.usersys.redhat.com (unknown [10.43.2.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DADDA5D6C8; Tue, 3 Sep 2019 08:43:17 +0000 (UTC) From: Pino Toscano To: libvir-list@redhat.com Date: Tue, 3 Sep 2019 10:43:06 +0200 Message-Id: <20190903084306.32520-7-ptoscano@redhat.com> In-Reply-To: <20190903084306.32520-1-ptoscano@redhat.com> References: <20190903084306.32520-1-ptoscano@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [ocaml PATCH 6/6] Rename libvirt_c_epilogue.c to libvirt_c_common.c 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Tue, 03 Sep 2019 08:43:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Make it clear it contains common code, and it is no more the final part of some other source. Signed-off-by: Pino Toscano --- MANIFEST | 2 +- libvirt/Makefile.in | 10 +++++----- libvirt/README | 2 +- libvirt/libvirt.mli | 4 ++-- libvirt/{libvirt_c_epilogue.c =3D> libvirt_c_common.c} | 0 5 files changed, 9 insertions(+), 9 deletions(-) rename libvirt/{libvirt_c_epilogue.c =3D> libvirt_c_common.c} (100%) diff --git a/MANIFEST b/MANIFEST index c026fef..b6a7707 100644 --- a/MANIFEST +++ b/MANIFEST @@ -20,7 +20,7 @@ install-sh libvirt/.depend libvirt/generator.pl libvirt/libvirt_c.h -libvirt/libvirt_c_epilogue.c +libvirt/libvirt_c_common.c libvirt/libvirt_c_oneoffs.c libvirt/libvirt.ml libvirt/libvirt.mli diff --git a/libvirt/Makefile.in b/libvirt/Makefile.in index d78056b..2fa445b 100644 --- a/libvirt/Makefile.in +++ b/libvirt/Makefile.in @@ -64,10 +64,10 @@ OPTOBJS :=3D libvirt.cmx libvirt_version.cmx =20 ifneq ($(OCAMLMKLIB),) # Good, we can just use ocamlmklib -mllibvirt.cma: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_epilogue.= o $(COBJS) +mllibvirt.cma: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_common.o = $(COBJS) $(OCAMLMKLIB) -o mllibvirt $^ $(LDFLAGS) =20 -mllibvirt.cmxa: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_epilogue= .o $(OPTOBJS) +mllibvirt.cmxa: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_common.o= $(OPTOBJS) $(OCAMLMKLIB) -o mllibvirt $^ $(LDFLAGS) =20 else @@ -83,11 +83,11 @@ mllibvirt.cmxa: libmllibvirt.a $(OPTOBJS) $(OCAMLOPT) -a -linkall -o $@ $(OPTOBJS) \ -cclib -lmllibvirt -cclib "$(LDFLAGS)" =20 -dllmllibvirt.dll: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_epilog= ue.o +dllmllibvirt.dll: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_common= .o $(CC) -shared -o $@ $^ \ $(LDFLAGS) "$(shell ocamlc -where)"/ocamlrun.a =20 -libmllibvirt.a: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_epilogue= .o +libmllibvirt.a: libvirt_generated.o libvirt_c_oneoffs.o libvirt_c_common.o ar rc $@ $^ ranlib $@ =20 @@ -106,7 +106,7 @@ libvirt_generated.c: generator.pl # Extra dependencies. libvirt_generated.o: libvirt_c.h libvirt_c_oneoffs.o: libvirt_c.h -libvirt_c_epilogue.o: libvirt_c.h +libvirt_c_common.o: libvirt_c.h =20 # Status of automatically generated bindings. autostatus: libvirt_generated.c diff --git a/libvirt/README b/libvirt/README index 197a07a..fb8e7f5 100644 --- a/libvirt/README +++ b/libvirt/README @@ -10,7 +10,7 @@ documentation starting at html/index.html. 'libvirt_c.h' contains prototypes of common functions defined in the epilogue (see below), and provides some general macros. =20 -'libvirt_c_epilogue.c' contains some standard functions (eg.) for +'libvirt_c_common.c' contains some standard functions (eg.) for wrapping and unwrapping libvirt objects. =20 'libvirt_c_oneoffs.c' contains bindings which are too specialised or diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli index 0739702..cbcf616 100644 --- a/libvirt/libvirt.mli +++ b/libvirt/libvirt.mli @@ -1485,7 +1485,7 @@ sig | VIR_ERR_NETWORK_PORT_EXIST | VIR_ERR_NO_NETWORK_PORT (* ^^ NB: If you add a variant you MUST edit - libvirt_c_epilogue.c:MAX_VIR_* *) + libvirt_c_common.c:MAX_VIR_* *) | VIR_ERR_UNKNOWN of int (** Other error, not handled with existing va= lues. *) (** See [] for meaning of these codes. *) =20 @@ -1564,7 +1564,7 @@ sig | VIR_FROM_DOMAIN_CHECKPOINT | VIR_FROM_TPM (* ^^ NB: If you add a variant you MUST edit - libvirt_c_epilogue.c: MAX_VIR_* *) + libvirt_c_common.c: MAX_VIR_* *) | VIR_FROM_UNKNOWN of int (** Other domain, not handled with existing = values. *) (** Subsystem / driver which produced the error. *) =20 diff --git a/libvirt/libvirt_c_epilogue.c b/libvirt/libvirt_c_common.c similarity index 100% rename from libvirt/libvirt_c_epilogue.c rename to libvirt/libvirt_c_common.c --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list