Message ID | 20180712134016.14336-2-jkbs@redhat.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41RHBp47jZz9rxx for <incoming@patchwork.ozlabs.org>; Thu, 12 Jul 2018 23:40:50 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id D97C1CB9; Thu, 12 Jul 2018 13:40:23 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id B72D1CB9 for <dev@openvswitch.org>; Thu, 12 Jul 2018 13:40:22 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B99174FA for <dev@openvswitch.org>; Thu, 12 Jul 2018 13:40:20 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id w16-v6so5675727wmc.2 for <dev@openvswitch.org>; Thu, 12 Jul 2018 06:40:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0SfbUdIAaNgOTbl9njp79hcC8Wv7UG54qNM01M4rhIY=; b=FoyA+7F0BXRoWOPYLnbOBekxmyW7LTjS1bWykTQ8srax4XldP29Fj6ZDcSboZWgVwH sBKU3486G+EE+Gw3yMNgaNEAOfNscDPL7AHrSdMPYMBWskF1KXKcvYsyURQRtyP5P8mg m5P2KN9v8f4f9gM8eNVJ874jGA9s8muvUXSZmSeXBvSNqDPLYsIcCPa6fOjUz79HSLgA imwe/Ej1i14gLitHX+vQvcAGNRO/tsH2AgQUZdt7PJaCd/vKYPHeKL2WpHgZsXWrz1sI 2pwWYcvvPXlm1/6MqTT/svKyZ5O0KA+tmI/wqH6XP5PZERt0JmsOaklvgaXZHbfJh3Dz uZvw== X-Gm-Message-State: AOUpUlEVueHTLzzbbN3Gx4e31K1GJyFS9aK+kTqHcDhdCilUTUaB6JVU kZWt/QVpoQPtswj/FsKy2l8VDoa+HII= X-Google-Smtp-Source: AAOMgpfEBtxBrY9vlhvk5CH3dpnweOJccBnBUOvXYmF7+zieddIoNNbXw7eoSDNnFGYlwkoH6v74jQ== X-Received: by 2002:a1c:8291:: with SMTP id e139-v6mr1545946wmd.39.1531402819265; Thu, 12 Jul 2018 06:40:19 -0700 (PDT) Received: from redhat.com (red-hat-inc.vlan404.asr1.mad1.gblx.net. [64.215.113.190]) by smtp.gmail.com with ESMTPSA id v5-v6sm11027411wru.60.2018.07.12.06.40.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 06:40:18 -0700 (PDT) From: Jakub Sitnicki <jkbs@redhat.com> To: dev@openvswitch.org Date: Thu, 12 Jul 2018 15:40:02 +0200 Message-Id: <20180712134016.14336-2-jkbs@redhat.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180712134016.14336-1-jkbs@redhat.com> References: <20180712134016.14336-1-jkbs@redhat.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v2 01/15] table: Introduce a constant for default table style. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
Series |
Daemon mode for ovn-nbctl
|
expand
|
diff --git a/lib/table.h b/lib/table.h index 313ac1dd2..76e65bb70 100644 --- a/lib/table.h +++ b/lib/table.h @@ -20,6 +20,7 @@ #include <stdbool.h> #include <stddef.h> #include "compiler.h" +#include "openvswitch/json.h" struct ds; struct table_style; @@ -83,6 +84,7 @@ struct table_style { }; #define TABLE_STYLE_DEFAULT { TF_LIST, CF_STRING, true, JSSF_SORT, 0 } +static const struct table_style table_style_default = TABLE_STYLE_DEFAULT; #define TABLE_OPTION_ENUMS \ OPT_NO_HEADINGS, \
Having a constant in addition to the constant expression for the default table style allows us to reset 'struct table_style' variables to default style. Signed-off-by: Jakub Sitnicki <jkbs@redhat.com> --- lib/table.h | 2 ++ 1 file changed, 2 insertions(+)