From nobody Mon Feb 9 16:18:45 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=1560874613; cv=none; d=zoho.com; s=zohoarc; b=DX+tc1SQL/tap48hr0OzNfShdJfH5Op6+iMPJA9UcuuiYQKGMXeUKH5EwgydnsQfflX9+hYUVV75f4CzJKn0Lbhysohikw28yckbpusGl93yAqlGgY5O5/5Dtah/m7WUS/05DuCJnAxU76Zr57wmnqJtjkzb6AJLpvyPExJz3gw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560874613; 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=xmf1uH3VAzcOGiICN+iJNDChUkScgraI1YlegXR3J40=; b=TO50DMpp1eyxW+msEr63Sn3qeK8yWLsL/NN13JpIpRnIdbzCBTtjMZ2bOr+d0c1Y3H/rfViJkbD/4a7L6nrJj9OqMV51bvV4kTV/gg2yEtOV5zxn8fBbFMcu9Jahgw09MV1nsu8dy47hSc7AEXh6MHZcLH4/Wmp0yT9M9PrETZA= 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 1560874613440130.27728963074355; Tue, 18 Jun 2019 09:16:53 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CECDB308794D; Tue, 18 Jun 2019 16:16:51 +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 AA53A57AF; Tue, 18 Jun 2019 16:16:51 +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 71CAE206D7; Tue, 18 Jun 2019 16:16:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5IGDcBm024414 for ; Tue, 18 Jun 2019 12:13:38 -0400 Received: by smtp.corp.redhat.com (Postfix) id 018F284EF; Tue, 18 Jun 2019 16:13:38 +0000 (UTC) Received: from aegolius.redhat.com (ovpn-117-198.phx2.redhat.com [10.3.117.198]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C45BD60FAB for ; Tue, 18 Jun 2019 16:13:37 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Tue, 18 Jun 2019 11:13:11 -0500 Message-Id: <20190618161316.1722-42-jjongsma@redhat.com> In-Reply-To: <20190618161316.1722-1-jjongsma@redhat.com> References: <20190618161316.1722-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 41/46] src/vmx: use #pragma once in headers 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.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 18 Jun 2019 16:16:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- src/vmx/vmx.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/vmx/vmx.h b/src/vmx/vmx.h index 8c068b4cb2..18478ac0ae 100644 --- a/src/vmx/vmx.h +++ b/src/vmx/vmx.h @@ -19,14 +19,13 @@ * */ =20 -#ifndef LIBVIRT_VMX_H -# define LIBVIRT_VMX_H +#pragma once =20 -# include "internal.h" -# include "virconf.h" -# include "domain_conf.h" +#include "internal.h" +#include "virconf.h" +#include "domain_conf.h" =20 -# define VMX_CONFIG_FORMAT_ARGV "vmware-vmx" +#define VMX_CONFIG_FORMAT_ARGV "vmware-vmx" =20 typedef struct _virVMXContext virVMXContext; =20 @@ -66,15 +65,15 @@ struct _virVMXContext { =20 char *virVMXEscapeHex(const char *string, char escape, const char *special= ); =20 -# define virVMXEscapeHexPipe(_string) virVMXEscapeHex(_string, '|', "\"") +#define virVMXEscapeHexPipe(_string) virVMXEscapeHex(_string, '|', "\"") =20 -# define virVMXEscapeHexPercent(_string) virVMXEscapeHex(_string, '%', "/\= \") +#define virVMXEscapeHexPercent(_string) virVMXEscapeHex(_string, '%', "/\\= ") =20 int virVMXUnescapeHex(char *string, char escape); =20 -# define virVMXUnescapeHexPipe(_string) virVMXUnescapeHex(_string, '|') +#define virVMXUnescapeHexPipe(_string) virVMXUnescapeHex(_string, '|') =20 -# define virVMXUnescapeHexPercent(_string) virVMXUnescapeHex(_string, '%') +#define virVMXUnescapeHexPercent(_string) virVMXUnescapeHex(_string, '%') =20 char *virVMXConvertToUTF8(const char *encoding, const char *string); =20 @@ -141,5 +140,3 @@ int virVMXFormatParallel(virVMXContext *ctx, virDomainC= hrDefPtr def, virBufferPtr buffer); =20 int virVMXFormatSVGA(virDomainVideoDefPtr def, virBufferPtr buffer); - -#endif /* LIBVIRT_VMX_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list