summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-02-28 17:44:54 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-03-24 13:59:32 +1030
commit2ceba89ab21441364fc50d1abf41a4f1c6f68224 (patch)
treea11ac4a97874536c3907f4b0f161acd1d3f1ff2e
parentbd38c21057cf58bc8977e0b2fc1497d73794be14 (diff)
downloadphosphor-mboxd-2ceba89ab21441364fc50d1abf41a4f1c6f68224.zip
phosphor-mboxd-2ceba89ab21441364fc50d1abf41a4f1c6f68224.tar.gz
pnor_partition_table: Move struct vpnor_partition_table to header
Allow use of the definition in other parts of the codebase. Change-Id: I5f4f23c909a09f12fd16728183aadbf36b565dba Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r--mboxd_pnor_partition_table.cpp6
-rw-r--r--pnor_partition_table.hpp5
2 files changed, 6 insertions, 5 deletions
diff --git a/mboxd_pnor_partition_table.cpp b/mboxd_pnor_partition_table.cpp
index 49afeb0..2d7cf8f 100644
--- a/mboxd_pnor_partition_table.cpp
+++ b/mboxd_pnor_partition_table.cpp
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
#include "mboxd_pnor_partition_table.h"
+#include "pnor_partition_table.hpp"
#include "common.h"
#include "mbox.h"
#include "mboxd_flash.h"
@@ -10,11 +11,6 @@
#include <phosphor-logging/elog-errors.hpp>
#include <experimental/filesystem>
-struct vpnor_partition_table
-{
- openpower::virtual_pnor::partition::Table *table = nullptr;
-};
-
int init_vpnor(struct mbox_context *context)
{
if (context && !context->vpnor)
diff --git a/pnor_partition_table.hpp b/pnor_partition_table.hpp
index 796a47a..730e75b 100644
--- a/pnor_partition_table.hpp
+++ b/pnor_partition_table.hpp
@@ -306,3 +306,8 @@ class InvalidTocEntry : public TocEntryError
} // namespace virtual_pnor
} // namespace openpower
+
+struct vpnor_partition_table
+{
+ openpower::virtual_pnor::partition::Table* table;
+};
OpenPOWER on IntegriCloud