}
}
-void
-print_packet_header(FILE *fh, print_format_e format, guint32 number, gchar *summary) {
- char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
-
- switch (format) {
-
- case(PR_FMT_TEXT):
- /* do nothing */
- break;
-
- case(PR_FMT_PS):
- ps_clean_string(psbuffer, summary, MAX_PS_LINE_LENGTH);
- /*
- * See the Adobe "pdfmark reference". The pdfmark stuff
- * tells code that turns PostScript into PDF stuff that
- * it should do.
- *
- * The /OUT stuff creates a bookmark that goes to the
- * destination with the name "__frame{N}__", where N is
- * the "number" argument, and with "summary" as the title.
- *
- * The "/DEST" creates the destination.
- */
- fprintf(fh, "[/Dest /__frame%u__ /Title (%s) /OUT pdfmark\n", number, psbuffer);
- fputs("[/View [/XYZ -4 currentpoint matrix currentmatrix matrix defaultmatrix\n", fh);
- fputs("matrix invertmatrix matrix concatmatrix transform exch pop 20 add null]\n", fh);
- fprintf(fh, "/Dest /__frame%u__ /DEST pdfmark\n", number);
- break;
-
- default:
- g_assert_not_reached();
- }
-}
-
/* Some formats need stuff at the beginning of the output */
gboolean
print_preamble(print_stream_t *self, gchar *filename)
extern gboolean proto_tree_print(print_args_t *print_args, epan_dissect_t *edt,
print_stream_t *stream);
extern gboolean print_hex_data(print_stream_t *stream, epan_dissect_t *edt);
-extern void print_packet_header(FILE *fh, print_format_e format, guint32 number, gchar *summary);
extern print_stream_t *print_stream_text_new(int to_file, const char *dest);
extern print_stream_t *print_stream_text_stdio_new(FILE *fh);