blob: 613a916f9629c3c2379dc30ffdb092802f7dd5ed [file] [log] [blame] [edit]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_CONFIG_H_
#define SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_CONFIG_H_
#include <zircon/types.h>
#include <set>
#include <string>
namespace forensics {
namespace feedback_data {
// Feedback data provider configuration.
struct Config {
// Set of annotation keys to return data for in fuchsia.feedback.DataProvider/GetSnapshot.
std::set<std::string> annotation_allowlist;
// Set of attachment keys to return data for in fuchsia.feedback.DataProvider/GetSnapshot.
std::set<std::string> attachment_allowlist;
};
// Parses the JSON config at |filepath| as |config|.
zx_status_t ParseConfig(const std::string& filepath, Config* config);
} // namespace feedback_data
} // namespace forensics
#endif // SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_CONFIG_H_