blob: ccb8b87b4d4301aa28259326f98a3923fc966c32 [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_DEBUG_ZXDB_CONSOLE_FORMAT_JOB_H_
#define SRC_DEVELOPER_DEBUG_ZXDB_CONSOLE_FORMAT_JOB_H_
#include <string>
#include "src/developer/debug/zxdb/client/job_context.h"
#include "src/developer/debug/zxdb/console/output_buffer.h"
namespace zxdb {
class ConsoleContext;
OutputBuffer FormatJobContext(ConsoleContext* context, const JobContext* job_context);
// Formats all jobs as a table. The number of spaces given by |indent| will be
// added to the left.
OutputBuffer FormatJobList(ConsoleContext* context, int indent = 0);
const char* JobContextStateToString(JobContext::State state);
} // namespace zxdb
#endif // SRC_DEVELOPER_DEBUG_ZXDB_CONSOLE_FORMAT_JOB_H_