Force coreboot mconf to create temp files in the output directory
[coreboot.git] / util / nvramtool / hexdump.h
index 4ee77f9fca7bccbeaa33efc9ad3fb866048f4da9..14c4bbfd4ae23d2a187e6af2c4a9793aedcea5ec 100644 (file)
@@ -1,6 +1,5 @@
 /*****************************************************************************\
  * hexdump.h
- * $Id$
 \*****************************************************************************/
 
 #ifndef _HEXDUMP_H
@@ -49,8 +48,6 @@
 #include <sys/types.h>
 #include <stdio.h>
 
-typedef int (*is_printable_fn_t) (unsigned char c);
-
 /*--------------------------------------------------------------------------
  * hexdump_format_t
  *
@@ -76,23 +73,16 @@ 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;
-   int addrprint_width;
-   const char *indent;
-   const char *sep1;
-   const char *sep2;
-   const char *sep3;
-   unsigned char nonprintable;
-   is_printable_fn_t is_printable_fn;
- }
-hexdump_format_t;
+typedef struct {
+       int bytes_per_line;
+       int addrprint_width;
+       const char *indent;
+       const char *sep1;
+       const char *sep2;
+       const char *sep3;
+       unsigned char nonprintable;
+} hexdump_format_t;
 
 /*--------------------------------------------------------------------------
  * hexdump
@@ -110,23 +100,7 @@ hexdump_format_t;
  *     format:          A structure specifying how the hex dump should be
  *                      formatted.
  *--------------------------------------------------------------------------*/
-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);
+void hexdump(const void *mem, int bytes, uint64_t addrprint_start,
+            FILE * outfile, const hexdump_format_t * format);
 
-#endif  /* _HEXDUMP_H */
+#endif                         /* _HEXDUMP_H */