Message ID | 20180719135126.19636-2-jkbs@redhat.com |
---|---|
State | Accepted |
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 41Wb6h1flbz9s4r for <incoming@patchwork.ozlabs.org>; Thu, 19 Jul 2018 23:52:12 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 81756F0F; Thu, 19 Jul 2018 13:51:33 +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 269F3EFE for <dev@openvswitch.org>; Thu, 19 Jul 2018 13:51:32 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9E48F5D4 for <dev@openvswitch.org>; Thu, 19 Jul 2018 13:51:31 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id s14-v6so6535562wmc.1 for <dev@openvswitch.org>; Thu, 19 Jul 2018 06:51:31 -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=BoRcK3sUbxHjMy5O7dUP3g0bCFFrZGpduXa2N/G3x+RzRTNnSt00Ct3YDLHAIjF2yA cfiqRebo2haIZzxvFnOy7TmfvoVIBHUQT7Xv3REm/KkGe4AXso7ONCt1Ti5ihUbjMcQB YL089Pw0IsmZxoaEWlNjth77mcc1R/H4vlfLqssiy9QzrX/iSlo4g04Y2RmKFPOG8ofw 0gWxVVdDEDkNjh3qvDUt9o91gBJJbSs6E5aiyirv+hNdMO4Ug2ik9cH/sMy0+H+MdgYZ fVn8920Zu1a51D8zDFUEAfkExnU+MDKJQPr1beDVtclKK+Ze2b6nGFq/O8MMMWMYSdYD 0RFA== X-Gm-Message-State: AOUpUlEgwQhK4NfISf8IKtcouqNfOoLzTLNq6uzCyRl61kghsum3X9oy V5PEgV73sRWa0TJ0AYq2JO+bf8tclfY= X-Google-Smtp-Source: AAOMgpeIqsAmN0k399Vasxciya+P9si/Rvo4oMfvnljAZbwU+ECip8yxL1lWCOo9214iO9t23kQRlQ== X-Received: by 2002:a1c:4887:: with SMTP id v129-v6mr4052152wma.129.1532008290058; Thu, 19 Jul 2018 06:51:30 -0700 (PDT) Received: from redhat.com (218.red-2-136-166.dynamicip.rima-tde.net. [2.136.166.218]) by smtp.gmail.com with ESMTPSA id c7-v6sm6482886wma.26.2018.07.19.06.51.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 06:51:29 -0700 (PDT) From: Jakub Sitnicki <jkbs@redhat.com> To: dev@openvswitch.org Date: Thu, 19 Jul 2018 15:51:06 +0200 Message-Id: <20180719135126.19636-2-jkbs@redhat.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180719135126.19636-1-jkbs@redhat.com> References: <20180719135126.19636-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 v5 01/21] 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(+)