diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-02-04 18:44:44 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-02-04 18:44:44 +0000 |
commit | 0861927ce30146be75bcb57b6939c0fd9fee43b3 (patch) | |
tree | f2d0d9d8c5c3712358e4169b04391e0629dfd4af /gtk/print_dlg.c | |
parent | d7ad33dc51e0e51e6cc2903ff0ac3ce806550ce4 (diff) |
huge cleanup of capture file API (functions in file.c/file.h).
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions.
Hopefully, I didn't introduced any new bugs, as I had to change a lot of files...
svn path=/trunk/; revision=13289
Diffstat (limited to 'gtk/print_dlg.c')
-rw-r--r-- | gtk/print_dlg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/print_dlg.c b/gtk/print_dlg.c index 114917a3f9..5163db6fbc 100644 --- a/gtk/print_dlg.c +++ b/gtk/print_dlg.c @@ -769,7 +769,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) #ifdef _WIN32 gboolean win_printer = FALSE; #endif - pp_return_t status; + cf_status_t status; args = (print_args_t *)OBJECT_GET_DATA(ok_bt, PRINT_ARGS_KEY); @@ -857,9 +857,9 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) /* Now print/export the packets */ if (export_as_pdml) - status = write_pdml_packets(&cfile, args); + status = cf_write_pdml_packets(&cfile, args); else if (export_as_psml) - status = write_psml_packets(&cfile, args); + status = cf_write_psml_packets(&cfile, args); else { switch (args->format) { @@ -899,14 +899,14 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) g_assert_not_reached(); return; } - status = print_packets(&cfile, args); + status = cf_print_packets(&cfile, args); } switch (status) { - case PP_OK: + case CF_OK: break; - case PP_OPEN_ERROR: + case CF_PRINT_OPEN_ERROR: if (args->to_file) open_failure_alert_box(args->file, errno, TRUE); else @@ -914,7 +914,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) args->cmd); break; - case PP_WRITE_ERROR: + case CF_PRINT_WRITE_ERROR: if (args->to_file) write_failure_alert_box(args->file, errno); else |