• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Handling of color output.
2    Copyright (C) 2017 The Qt Company
3    This file is part of elfutils.
4    Written by Ulrich Drepper <drepper@redhat.com>, 2011.
5 
6    This file is free software; you can redistribute it and/or modify
7    it under the terms of either
8 
9      * the GNU Lesser General Public License as published by the Free
10        Software Foundation; either version 3 of the License, or (at
11        your option) any later version
12 
13    or
14 
15      * the GNU General Public License as published by the Free
16        Software Foundation; either version 2 of the License, or (at
17        your option) any later version
18 
19    or both in parallel, as here.
20 
21    elfutils is distributed in the hope that it will be useful, but
22    WITHOUT ANY WARRANTY; without even the implied warranty of
23    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
24    General Public License for more details.
25 
26    You should have received copies of the GNU General Public License and
27    the GNU Lesser General Public License along with this program.  If
28    not, see <http://www.gnu.org/licenses/>.  */
29 
30 
31 #ifndef COLOR_H
32 #define COLOR_H 1
33 
34 /* Command line parser.  */
35 extern const struct argp color_argp;
36 
37 /* Coloring mode.  */
38 enum color_enum
39   {
40     color_never = 0,
41     color_always,
42     color_auto
43   } __attribute__ ((packed));
44 extern enum color_enum color_mode;
45 
46 /* Colors to use for the various components.  */
47 extern char *color_address;
48 extern char *color_bytes;
49 extern char *color_mnemonic;
50 extern char *color_operand1;
51 extern char *color_operand2;
52 extern char *color_operand3;
53 extern char *color_label;
54 extern char *color_undef;
55 extern char *color_undef_tls;
56 extern char *color_undef_weak;
57 extern char *color_symbol;
58 extern char *color_tls;
59 extern char *color_weak;
60 
61 extern const char color_off[];
62 
63 #endif /* color.h */
64