blob: f52e529c75b557bef5267f8f4a1097bb89124f48 [file] [log] [blame]
// 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_FEEDBACK_FEEDBACK_AGENT_FEEDBACK_ID_H_
#define SRC_DEVELOPER_FEEDBACK_FEEDBACK_AGENT_FEEDBACK_ID_H_
#include <string>
namespace feedback {
// Creates a new feedback id and stores it at |path| if the file doesn't exist or contains an
// invalid id.
//
// A feedback id is a 128-bit (pseudo) random UUID in the form of version 4 as described
// in RFC 4122, section 4.4.
bool InitializeFeedbackId(const std::string& path);
} // namespace feedback
#endif // SRC_DEVELOPER_FEEDBACK_FEEDBACK_AGENT_FEEDBACK_ID_H_