aboutsummaryrefslogtreecommitdiffstats
path: root/print.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-06 07:33:35 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-06 07:33:35 +0000
commitc4a7eb6457637cebb0ce4d9801102e1a71e4f43f (patch)
tree089cffea69924399b0a14a8dd9b86be8856f5cb1 /print.h
parent4d638e504512e37956e0a97c3bf62ff84f7c60f2 (diff)
Printing multiple pages of PostScript wasn't as tricky as I thought; add
support for printing in PostScript to the "Print..." dialog box. svn path=/trunk/; revision=1426
Diffstat (limited to 'print.h')
-rw-r--r--print.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/print.h b/print.h
index 268e2f169f..e20dcf6912 100644
--- a/print.h
+++ b/print.h
@@ -1,7 +1,7 @@
/* print.h
* Definitions for printing packet analysis trees.
*
- * $Id: print.h,v 1.15 1999/11/22 06:24:41 gram Exp $
+ * $Id: print.h,v 1.16 2000/01/06 07:33:23 guy Exp $
*
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
@@ -28,10 +28,14 @@
#ifndef __PRINT_H__
#define __PRINT_H__
+#define PR_FMT_TEXT 0
+#define PR_FMT_PS 1
+
typedef struct {
gboolean to_file; /* TRUE if we're printing to a file */
char *dest; /* if printing to file, pathname;
if not, command string */
+ gint format; /* text or PostScript */
gboolean print_summary; /* TRUE if we should just print summary;
FALSE if we should print protocol tree. */
gboolean print_hex; /* TRUE if we should also print hex data;
@@ -44,12 +48,13 @@ typedef struct {
FILE *open_print_dest(int to_file, const char *dest);
void close_print_dest(int to_file, FILE *fh);
-void print_preamble(FILE *fh);
-void print_finale(FILE *fh);
-void print_file(FILE* fh, const char* filename);
+void print_preamble(FILE *fh, gint format);
+void print_finale(FILE *fh, gint format);
+void print_file(FILE* fh, const char* filename, gint format);
void proto_tree_print(gboolean print_one_packet, print_args_t *print_args,
GNode *protocol_tree, const u_char *pd, frame_data *fd, FILE *fh);
-void print_hex_data(FILE *fh, register const u_char *cp,
+void print_hex_data(FILE *fh, gint format, register const u_char *cp,
register u_int length, char_enc encoding);
+void print_line(FILE *fh, gint format, char *line);
#endif /* print.h */