aboutsummaryrefslogtreecommitdiffstats
path: root/print.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-01-06 07:33:35 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-01-06 07:33:35 +0000
commit23eeee2bcf6f35c47c3903b0f7154bd017e924b0 (patch)
tree089cffea69924399b0a14a8dd9b86be8856f5cb1 /print.h
parent33114556e0bca6d0f6a69c3b8a7acb29c722044b (diff)
Printing multiple pages of PostScript wasn't as tricky as I thought; add
support for printing in PostScript to the "Print..." dialog box. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1426 f5534014-38df-0310-8fa8-9805f1628bb7
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 */