131af32cfcd61671cbb5e567870103766b3231521Petr Machata/*
231af32cfcd61671cbb5e567870103766b3231521Petr Machata * This file is part of ltrace.
3ec4ab256e5c7fe1596dd90a3c8e8d4b052ca1207Petr Machata * Copyright (C) 2011, 2012 Petr Machata, Red Hat Inc.
431af32cfcd61671cbb5e567870103766b3231521Petr Machata *
531af32cfcd61671cbb5e567870103766b3231521Petr Machata * This program is free software; you can redistribute it and/or
631af32cfcd61671cbb5e567870103766b3231521Petr Machata * modify it under the terms of the GNU General Public License as
731af32cfcd61671cbb5e567870103766b3231521Petr Machata * published by the Free Software Foundation; either version 2 of the
831af32cfcd61671cbb5e567870103766b3231521Petr Machata * License, or (at your option) any later version.
931af32cfcd61671cbb5e567870103766b3231521Petr Machata *
1031af32cfcd61671cbb5e567870103766b3231521Petr Machata * This program is distributed in the hope that it will be useful, but
1131af32cfcd61671cbb5e567870103766b3231521Petr Machata * WITHOUT ANY WARRANTY; without even the implied warranty of
1231af32cfcd61671cbb5e567870103766b3231521Petr Machata * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1331af32cfcd61671cbb5e567870103766b3231521Petr Machata * General Public License for more details.
1431af32cfcd61671cbb5e567870103766b3231521Petr Machata *
1531af32cfcd61671cbb5e567870103766b3231521Petr Machata * You should have received a copy of the GNU General Public License
1631af32cfcd61671cbb5e567870103766b3231521Petr Machata * along with this program; if not, write to the Free Software
1731af32cfcd61671cbb5e567870103766b3231521Petr Machata * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
1831af32cfcd61671cbb5e567870103766b3231521Petr Machata * 02110-1301 USA
1931af32cfcd61671cbb5e567870103766b3231521Petr Machata */
2031af32cfcd61671cbb5e567870103766b3231521Petr Machata
2131af32cfcd61671cbb5e567870103766b3231521Petr Machata#ifndef LENS_DEFAULT_H
2231af32cfcd61671cbb5e567870103766b3231521Petr Machata#define LENS_DEFAULT_H
2331af32cfcd61671cbb5e567870103766b3231521Petr Machata
2431af32cfcd61671cbb5e567870103766b3231521Petr Machata#include "lens.h"
2531af32cfcd61671cbb5e567870103766b3231521Petr Machata
2631af32cfcd61671cbb5e567870103766b3231521Petr Machata/* Default lens that does reasonable job for most cases.  */
2731af32cfcd61671cbb5e567870103766b3231521Petr Machataextern struct lens default_lens;
2831af32cfcd61671cbb5e567870103766b3231521Petr Machata
29ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machata/* A lens that doesn't output anything.  */
30ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machataextern struct lens blind_lens;
31ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machata
32ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machata/* A lens that formats integers in octal.  */
33ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machataextern struct lens octal_lens;
34ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machata
35ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machata/* A lens that formats integers in hexadecimal.  */
36ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machataextern struct lens hex_lens;
37ce034981e2880eecb8a196c78182dfb4ae67850fPetr Machata
3838fb49b852374d749bc91f1b8d91a2b5b2a57a10Petr Machata/* A lens that formats integers as either "true" or "false".  */
3938fb49b852374d749bc91f1b8d91a2b5b2a57a10Petr Machataextern struct lens bool_lens;
4038fb49b852374d749bc91f1b8d91a2b5b2a57a10Petr Machata
41b781916d24d6ee96842c818b5e18af31808d427dPetr Machata/* A lens that tries to guess whether the value is "large" (i.e. a
42b781916d24d6ee96842c818b5e18af31808d427dPetr Machata * pointer, and should be formatted in hex), or "small" (and should be
43b781916d24d6ee96842c818b5e18af31808d427dPetr Machata * formatted in decimal).  */
44b781916d24d6ee96842c818b5e18af31808d427dPetr Machataextern struct lens guess_lens;
45b781916d24d6ee96842c818b5e18af31808d427dPetr Machata
46e3f4a984db115979e09414b7281da98399dd8949Petr Machata/* A lens for strings.  */
47e3f4a984db115979e09414b7281da98399dd8949Petr Machataextern struct lens string_lens;
48e3f4a984db115979e09414b7281da98399dd8949Petr Machata
49ec4ab256e5c7fe1596dd90a3c8e8d4b052ca1207Petr Machata/* A lens for bit vector.  */
50ec4ab256e5c7fe1596dd90a3c8e8d4b052ca1207Petr Machataextern struct lens bitvect_lens;
51ec4ab256e5c7fe1596dd90a3c8e8d4b052ca1207Petr Machata
5231af32cfcd61671cbb5e567870103766b3231521Petr Machata#endif /* LENS_DEFAULT_H */
53