1/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PRINT_H
18#define PRINT_H
19
20#include "command.h"
21
22extern bool g_stdoutIsTty;
23extern char const* g_escapeBold;
24extern char const* g_escapeRedBold;
25extern char const* g_escapeGreenBold;
26extern char const* g_escapeYellowBold;
27extern char const* g_escapeUnderline;
28extern char const* g_escapeEndColor;
29extern char const* g_escapeClearLine;
30
31void init_print();
32void print_status(const char* format, ...);
33void print_command(const Command& command);
34void print_error(const char* format, ...);
35void print_warning(const char* format, ...);
36void print_one_line(const char* format, ...);
37void check_error(int err);
38
39#endif // PRINT_H
40