Joe Onorato | 0578cbc | 2016-10-19 17:03:06 -0700 | [diff] [blame] | 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 | |
| 22 | extern bool g_stdoutIsTty; |
| 23 | extern char const* g_escapeBold; |
| 24 | extern char const* g_escapeRedBold; |
| 25 | extern char const* g_escapeGreenBold; |
| 26 | extern char const* g_escapeYellowBold; |
| 27 | extern char const* g_escapeUnderline; |
| 28 | extern char const* g_escapeEndColor; |
| 29 | extern char const* g_escapeClearLine; |
| 30 | |
| 31 | void init_print(); |
| 32 | void print_status(const char* format, ...); |
| 33 | void print_command(const Command& command); |
| 34 | void print_error(const char* format, ...); |
| 35 | void print_warning(const char* format, ...); |
Joe Onorato | 70edfa8 | 2018-12-14 15:46:27 -0800 | [diff] [blame] | 36 | void print_info(const char* format, ...); |
Joe Onorato | 0578cbc | 2016-10-19 17:03:06 -0700 | [diff] [blame] | 37 | void print_one_line(const char* format, ...); |
| 38 | void check_error(int err); |
| 39 | |
| 40 | #endif // PRINT_H |