summaryrefslogtreecommitdiff
path: root/util/nvramtool/hexdump.h
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2011-01-18 12:14:08 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-01-18 12:14:08 +0000
commit024ec852c29685549e5167f4b5d9065e80287ee2 (patch)
tree81b5393be08b5a5d037ba61e1f60b5dbe6c5dfe4 /util/nvramtool/hexdump.h
parent2601697c6f70e0200f6f115d6e6e5e5d67fe6101 (diff)
Remove overengineering, part 1/many
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Patrick Georgi <patrick.georgi@secunet.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6267 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/hexdump.h')
-rw-r--r--util/nvramtool/hexdump.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/util/nvramtool/hexdump.h b/util/nvramtool/hexdump.h
index a63ec02f98..14c4bbfd4a 100644
--- a/util/nvramtool/hexdump.h
+++ b/util/nvramtool/hexdump.h
@@ -48,8 +48,6 @@
#include <sys/types.h>
#include <stdio.h>
-typedef int (*is_printable_fn_t) (unsigned char c);
-
/*--------------------------------------------------------------------------
* hexdump_format_t
*
@@ -75,11 +73,6 @@ typedef int (*is_printable_fn_t) (unsigned char c);
* characters. It serves as a separator.
* nonprintable: This is a substitute character to display in place
* of nonprintable characters.
- * is_printable_fn: This is a user-supplied function that takes a byte
- * value as input and returns a boolean value
- * indicating whether the corresponding character is
- * printable. A value of NULL will cause
- * default_is_printable_fn to be used.
*--------------------------------------------------------------------------*/
typedef struct {
int bytes_per_line;
@@ -89,7 +82,6 @@ typedef struct {
const char *sep2;
const char *sep3;
unsigned char nonprintable;
- is_printable_fn_t is_printable_fn;
} hexdump_format_t;
/*--------------------------------------------------------------------------
@@ -111,20 +103,4 @@ typedef struct {
void hexdump(const void *mem, int bytes, uint64_t addrprint_start,
FILE * outfile, const hexdump_format_t * format);
-/*--------------------------------------------------------------------------
- * default_is_printable_fn
- *
- * Determine whether the input character is printable. The proper behavior
- * for this type of function may be system-dependent. This function appears
- * to work well on a Linux system. However, if it is not adequate for your
- * purposes, you can write your own.
- *
- * parameters:
- * c: the input character
- *
- * return value:
- * Return 1 if the input character is printable. Otherwise return 0.
- *--------------------------------------------------------------------------*/
-int default_is_printable_fn(unsigned char c);
-
#endif /* _HEXDUMP_H */