2 * Definitions for printing packet analysis trees.
4 * $Id: print.h,v 1.4 1998/09/27 22:12:45 gerald Exp $
6 * Gilbert Ramirez <gram@verdict.uthscsa.edu>
8 * Ethereal - Network traffic analyzer
9 * By Gerald Combs <gerald@zing.org>
10 * Copyright 1998 Gerald Combs
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 typedef struct pr_opts {
32 int output_format; /* 0=text, 1=postscript */
33 int output_dest; /* 0=cmd, 1=file */
37 /* for the dialogue box */
42 /* Functions in print.h */
44 void printer_opts_cb(GtkWidget *, gpointer);
45 void printer_opts_ok(GtkWidget *w);
46 void printer_opts_close(GtkWidget *w);
47 void print_tree(const u_char *pd, frame_data *fd, GtkTree *tree);
48 void print_tree_text(FILE *fh, const u_char *pd, frame_data *fd, GtkTree *tree);
49 void print_tree_ps(FILE *fh, const u_char *pd, frame_data *fd, GtkTree *tree);