Standardize filenames and function names for Follow TCP & SSL stream functions
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 13 Sep 2007 22:25:20 +0000 (22:25 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 13 Sep 2007 22:25:20 +0000 (22:25 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22870 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/Makefile.am
gtk/Makefile.common
gtk/follow_ssl.c [moved from gtk/ssl-dlg.c with 98% similarity]
gtk/follow_ssl.h [moved from gtk/ssl-dlg.h with 78% similarity]
gtk/follow_tcp.c [moved from gtk/follow_dlg.c with 98% similarity]
gtk/follow_tcp.h [moved from gtk/follow_dlg.h with 81% similarity]
gtk/font_utils.c
gtk/main.c
gtk/menu.c
gtk/stream_prefs.c

index ae1cff79b9a7a9c97882ddde4c45d5af51b4fc61..322d3fc7e0c55f20a2441bd7e5bf3de88bfaa106 100644 (file)
@@ -68,8 +68,9 @@ noinst_HEADERS = \
        filter_dlg.h    \
        find_dlg.h      \
        firewall_dlg.h  \
        filter_dlg.h    \
        find_dlg.h      \
        firewall_dlg.h  \
-       follow_dlg.h    \
+       follow_ssl.h    \
        follow_stream.h \
        follow_stream.h \
+       follow_tcp.h    \
        font_utils.h    \
        goto_dlg.h      \
        graph_analysis.h \
        font_utils.h    \
        goto_dlg.h      \
        graph_analysis.h \
@@ -111,7 +112,6 @@ noinst_HEADERS = \
        sctp_stat.h     \
        service_response_time_table.h   \
        gui_stat_menu.h \
        sctp_stat.h     \
        service_response_time_table.h   \
        gui_stat_menu.h \
-       ssl-dlg.h       \
        stream_prefs.h  \
        summary_dlg.h   \
        supported_protos_dlg.h   \
        stream_prefs.h  \
        summary_dlg.h   \
        supported_protos_dlg.h   \
index db03f919551fd68d366441d784ab5c112324059c..c8edd225f4be940b5a10a430ae1a5b94776944f6 100644 (file)
@@ -70,8 +70,9 @@ WIRESHARK_GTK_SRC = \
        filter_dlg.c    \
        find_dlg.c      \
        firewall_dlg.c  \
        filter_dlg.c    \
        find_dlg.c      \
        firewall_dlg.c  \
-       follow_dlg.c    \
+       follow_ssl.c    \
        follow_stream.c \
        follow_stream.c \
+       follow_tcp.c    \
        font_utils.c    \
        goto_dlg.c      \
        graph_analysis.c \
        font_utils.c    \
        goto_dlg.c      \
        graph_analysis.c \
@@ -109,7 +110,6 @@ WIRESHARK_GTK_SRC = \
        sctp_error_dlg.c        \
        service_response_time_table.c   \
        simple_dialog.c \
        sctp_error_dlg.c        \
        service_response_time_table.c   \
        simple_dialog.c \
-       ssl-dlg.c       \
        stream_prefs.c  \
        summary_dlg.c   \
        supported_protos_dlg.c  \
        stream_prefs.c  \
        summary_dlg.c   \
        supported_protos_dlg.c  \
similarity index 98%
rename from gtk/ssl-dlg.c
rename to gtk/follow_ssl.c
index c1a0c63b00c49af095e4b87fc8d389a3c43ff971..6f36049110287c38e200e11b335e24490a0e839a 100644 (file)
@@ -1,4 +1,5 @@
-/* ssl_dlg.c
+/* follow_ssl.c
+ * SSL specific routines for following traffic streams
  *
  * $Id$
  *
  *
  * $Id$
  *
@@ -65,7 +66,7 @@
 #include <epan/dissectors/packet-ssl-utils.h>
 #endif
 
 #include <epan/dissectors/packet-ssl-utils.h>
 #endif
 
-#include "ssl-dlg.h"
+#include "follow_ssl.h"
 
 #include "follow_stream.h"
 
 
 #include "follow_stream.h"
 
@@ -138,7 +139,7 @@ packet_is_ssl(epan_dissect_t* edt);
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
 void
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
 void
-ssl_stream_cb(GtkWidget * w, gpointer data _U_)
+follow_ssl_stream_cb(GtkWidget * w, gpointer data _U_)
 {
     GtkWidget  *filter_te;
     gchar      *follow_filter;
 {
     GtkWidget  *filter_te;
     gchar      *follow_filter;
similarity index 78%
rename from gtk/ssl-dlg.h
rename to gtk/follow_ssl.h
index 38018bdf338a5dcfd3ee2f07c872823590d34db5..4802f30168f14a60b4e9ac8f1743d96d1af33ac2 100644 (file)
@@ -1,5 +1,5 @@
-/* ssl-dlg.h
- * Decode ssl-enrypted conversations, given a keyfile.
+/* follow_ssl.h
+ * SSL specific routines for following traffic streams
  *
  * $Id$
  *
  *
  * $Id$
  *
  * Foundation,  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
  * Foundation,  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
-#ifndef SSL_DLG_H_INCLUDED
-#define SSL_DLG_H_INCLUDED
+#ifndef __FOLLOW_SSL_H__
+#define __FOLLOW_SSL_H__
 
 
-/* Follow the TCP stream, if any, to which the last packet that we called
+/* Follow the SSL stream, if any, to which the last packet that we called
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
-void ssl_stream_cb(GtkWidget * w, gpointer data _U_);
+void follow_ssl_stream_cb(GtkWidget * w, gpointer data _U_);
+
+#endif /* __FOLLOW_SSL_H__ */
 
 
-#endif /* SSL_DLG_H_INCLUDED */
similarity index 98%
rename from gtk/follow_dlg.c
rename to gtk/follow_tcp.c
index 6f571e41536474e897ab85ca52d6b65b6a4e84a3..fa689087d8eae5e22e3bf984f1b825a35b533941 100644 (file)
@@ -1,4 +1,5 @@
-/* follow_dlg.c
+/* follow_tcp.c
+ * TCP specific routines for following traffic streams
  *
  * $Id$
  *
  *
  * $Id$
  *
@@ -44,7 +45,7 @@
 #include "color.h"
 #include "colors.h"
 #include "file.h"
 #include "color.h"
 #include "colors.h"
 #include "file.h"
-#include "follow_dlg.h"
+#include "follow_tcp.h"
 #include <epan/follow.h>
 #include "dlg_utils.h"
 #include "file_dlg.h"
 #include <epan/follow.h>
 #include "dlg_utils.h"
 #include "file_dlg.h"
@@ -89,7 +90,7 @@ follow_redraw(gpointer data, gpointer user_data _U_)
 
 /* Redraw the text in all "Follow TCP Stream" windows. */
 void
 
 /* Redraw the text in all "Follow TCP Stream" windows. */
 void
-follow_redraw_all(void)
+follow_tcp_redraw_all(void)
 {
        g_list_foreach(follow_infos, follow_redraw, NULL);
 }
 {
        g_list_foreach(follow_infos, follow_redraw, NULL);
 }
@@ -98,7 +99,7 @@ follow_redraw_all(void)
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
 void
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
 void
-follow_stream_cb(GtkWidget * w, gpointer data _U_)
+follow_tcp_stream_cb(GtkWidget * w, gpointer data _U_)
 {
        GtkWidget       *filter_te;
        int             tmp_fd;
 {
        GtkWidget       *filter_te;
        int             tmp_fd;
similarity index 81%
rename from gtk/follow_dlg.h
rename to gtk/follow_tcp.h
index d88dae7448b45d3effc535a7c8021720060ab87a..1685fac8bb0b8ca4cfb18fe58d6c2e590a47bce5 100644 (file)
@@ -1,4 +1,5 @@
-/* follow_dlg.c
+/* follow_tcp.h
+ * TCP specific routines for following traffic streams
  *
  * $Id$
  *
  *
  * $Id$
  *
@@ -22,8 +23,8 @@
  *
  */
 
  *
  */
 
-#ifndef __FOLLOW_DLG_H__
-#define __FOLLOW_DLG_H__
+#ifndef __FOLLOW_TCP_H__
+#define __FOLLOW_TCP_H__
 
 /** @file
  *  "Follow TCP Stream" dialog box.
 
 /** @file
  *  "Follow TCP Stream" dialog box.
@@ -35,9 +36,9 @@
  * @param widget parent widget (unused)
  * @param data unused
  */
  * @param widget parent widget (unused)
  * @param data unused
  */
-extern void follow_stream_cb( GtkWidget *widget, gpointer data);
+extern void follow_tcp_stream_cb( GtkWidget *widget, gpointer data);
 
 /** Redraw the text in all "Follow TCP Stream" windows. */
 
 /** Redraw the text in all "Follow TCP Stream" windows. */
-extern void follow_redraw_all(void);
+extern void follow_tcp_redraw_all(void);
 
 
-#endif
+#endif /* __FOLLOW_TCP_H__ */
index 11875fc09f093461314cea7075c98b2c888e9816..a905282581e94d1cb819e03705e7974efc65fee3 100644 (file)
@@ -52,7 +52,7 @@
 
 #include "packet_list.h"
 #include "proto_draw.h"
 
 #include "packet_list.h"
 #include "proto_draw.h"
-#include "follow_dlg.h"
+#include "follow_tcp.h"
 
 
 
 
 
 
@@ -551,7 +551,7 @@ user_font_apply(void) {
     redraw_hex_dump_all();
 
     /* Redraw the "Follow TCP Stream" windows. */
     redraw_hex_dump_all();
 
     /* Redraw the "Follow TCP Stream" windows. */
-    follow_redraw_all();
+    follow_tcp_redraw_all();
 
     /* We're no longer using the old fonts; unreference them. */
 #if GTK_MAJOR_VERSION < 2
 
     /* We're no longer using the old fonts; unreference them. */
 #if GTK_MAJOR_VERSION < 2
index ed9b470054e352f0692351f5acf652af91f31c61..0ce7c9b9a90f93ad6f06fbfc1e882d804288301b 100644 (file)
 #include "find_dlg.h"
 #include "packet_list.h"
 #include "recent.h"
 #include "find_dlg.h"
 #include "packet_list.h"
 #include "recent.h"
-#include "follow_dlg.h"
+#include "follow_tcp.h"
 #include "font_utils.h"
 #include "about_dlg.h"
 #include "help_dlg.h"
 #include "font_utils.h"
 #include "about_dlg.h"
 #include "help_dlg.h"
index 67e7d6a493f941ef7500ee9f6c40d6037e1392d2..e53618013fad868c1c5e3a4236838927152fc463 100644 (file)
@@ -55,7 +55,7 @@
 #include "prefs_dlg.h"
 #include "packet_win.h"
 #include "print.h"
 #include "prefs_dlg.h"
 #include "packet_win.h"
 #include "print.h"
-#include "follow_dlg.h"
+#include "follow_tcp.h"
 #include "decode_as_dlg.h"
 #include "help_dlg.h"
 #include "supported_protos_dlg.h"
 #include "decode_as_dlg.h"
 #include "help_dlg.h"
 #include "supported_protos_dlg.h"
@@ -79,7 +79,7 @@
 #include "simple_dialog.h"
 #include "packet_history.h"
 #include "color_filters.h"
 #include "simple_dialog.h"
 #include "packet_history.h"
 #include "color_filters.h"
-#include "ssl-dlg.h"
+#include "follow_ssl.h"
 #include "sctp_stat.h"
 #include "firewall_dlg.h"
 #include "u3.h"
 #include "sctp_stat.h"
 #include "firewall_dlg.h"
 #include "u3.h"
@@ -621,9 +621,9 @@ static GtkItemFactoryEntry menu_items[] =
                        decode_show_cb, 0, WIRESHARK_STOCK_DECODE_AS),
     ITEM_FACTORY_ENTRY("/Analyze/<separator>", NULL, NULL, 0, "<Separator>", NULL),
     ITEM_FACTORY_ENTRY("/Analyze/_Follow TCP Stream", NULL,
                        decode_show_cb, 0, WIRESHARK_STOCK_DECODE_AS),
     ITEM_FACTORY_ENTRY("/Analyze/<separator>", NULL, NULL, 0, "<Separator>", NULL),
     ITEM_FACTORY_ENTRY("/Analyze/_Follow TCP Stream", NULL,
-                       follow_stream_cb, 0, NULL, NULL),
+                       follow_tcp_stream_cb, 0, NULL, NULL),
     ITEM_FACTORY_ENTRY("/Analyze/_Follow SSL Stream", NULL,
     ITEM_FACTORY_ENTRY("/Analyze/_Follow SSL Stream", NULL,
-                       ssl_stream_cb, 0, NULL, NULL),
+                       follow_ssl_stream_cb, 0, NULL, NULL),
     ITEM_FACTORY_ENTRY("/_Statistics", NULL, NULL, 0, "<Branch>", NULL),
     ITEM_FACTORY_STOCK_ENTRY("/Statistics/_Summary", NULL, summary_open_cb, 0, GTK_STOCK_PROPERTIES),
     ITEM_FACTORY_ENTRY("/Statistics/_Protocol Hierarchy", NULL,
     ITEM_FACTORY_ENTRY("/_Statistics", NULL, NULL, 0, "<Branch>", NULL),
     ITEM_FACTORY_STOCK_ENTRY("/Statistics/_Summary", NULL, summary_open_cb, 0, GTK_STOCK_PROPERTIES),
     ITEM_FACTORY_ENTRY("/Statistics/_Protocol Hierarchy", NULL,
@@ -719,9 +719,9 @@ static GtkItemFactoryEntry packet_list_menu_items[] =
     ITEM_FACTORY_ENTRY("/SCTP/Prepare Filter for this Association", NULL, sctp_set_assoc_filter,
                        0, NULL,NULL),
 
     ITEM_FACTORY_ENTRY("/SCTP/Prepare Filter for this Association", NULL, sctp_set_assoc_filter,
                        0, NULL,NULL),
 
-    ITEM_FACTORY_ENTRY("/Follow TCP Stream", NULL, follow_stream_cb,
+    ITEM_FACTORY_ENTRY("/Follow TCP Stream", NULL, follow_tcp_stream_cb,
                        0, NULL, NULL),
                        0, NULL, NULL),
-    ITEM_FACTORY_ENTRY("/Follow SSL Stream", NULL, ssl_stream_cb,
+    ITEM_FACTORY_ENTRY("/Follow SSL Stream", NULL, follow_ssl_stream_cb,
                        0, NULL, NULL),
 
     ITEM_FACTORY_ENTRY("/<separator>", NULL, NULL, 0, "<Separator>", NULL),
                        0, NULL, NULL),
 
     ITEM_FACTORY_ENTRY("/<separator>", NULL, NULL, 0, "<Separator>", NULL),
@@ -790,9 +790,9 @@ static GtkItemFactoryEntry tree_view_menu_items[] =
     ITEM_FACTORY_ENTRY("/Prepare a Filter/... o_r not Selected", NULL, match_selected_ptree_cb,
                        MATCH_SELECTED_OR_NOT, NULL, NULL),
 
     ITEM_FACTORY_ENTRY("/Prepare a Filter/... o_r not Selected", NULL, match_selected_ptree_cb,
                        MATCH_SELECTED_OR_NOT, NULL, NULL),
 
-    ITEM_FACTORY_ENTRY("/Follow TCP Stream", NULL, follow_stream_cb,
+    ITEM_FACTORY_ENTRY("/Follow TCP Stream", NULL, follow_tcp_stream_cb,
                        0, NULL, NULL),
                        0, NULL, NULL),
-    ITEM_FACTORY_ENTRY("/Follow SSL Stream", NULL, ssl_stream_cb,
+    ITEM_FACTORY_ENTRY("/Follow SSL Stream", NULL, follow_ssl_stream_cb,
                        0, NULL, NULL),
 
     ITEM_FACTORY_ENTRY("/<separator>", NULL, NULL, 0, "<Separator>", NULL),
                        0, NULL, NULL),
 
     ITEM_FACTORY_ENTRY("/<separator>", NULL, NULL, 0, "<Separator>", NULL),
index 14f6e5911f6b04a22534b501942e919b688a0e52..21c70ec76dd95d3ea9ca4e41d64533b733aeedd1 100644 (file)
@@ -36,7 +36,7 @@
 #include "print.h"
 #include <epan/prefs.h>
 #include "compat_macros.h"
 #include "print.h"
 #include <epan/prefs.h>
 #include "compat_macros.h"
-#include "follow_dlg.h"
+#include "follow_tcp.h"
 #include "packet_list.h"
 
 #define SAMPLE_MARKED_TEXT "Sample marked packet text\n"
 #include "packet_list.h"
 
 #define SAMPLE_MARKED_TEXT "Sample marked packet text\n"
@@ -264,7 +264,7 @@ stream_prefs_fetch(GtkWidget *w _U_)
 void
 stream_prefs_apply(GtkWidget *w _U_)
 {
 void
 stream_prefs_apply(GtkWidget *w _U_)
 {
-       follow_redraw_all();
+       follow_tcp_redraw_all();
 
        packet_list_update_marked_frames();
 }
 
        packet_list_update_marked_frames();
 }