blob: db6cf5f65cf8c26a54f595a480fd90a3b229eebe [file] [log] [blame]
Joe Onorato0578cbc2016-10-19 17:03:06 -07001/*
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, ...);
Joe Onorato70edfa82018-12-14 15:46:27 -080036void print_info(const char* format, ...);
Joe Onorato0578cbc2016-10-19 17:03:06 -070037void print_one_line(const char* format, ...);
38void check_error(int err);
39
40#endif // PRINT_H