aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/follow_stream.h
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-06-29 22:01:01 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-06-29 22:01:01 +0000
commit397ab1dbb752deae2d138ec42e4a903d15563810 (patch)
treee1c029c67b9d448efb27d3ed36113732c9e6bf58 /ui/gtk/follow_stream.h
parent1dfecc041c67d8a0525d57827cb7b5842e0ce87d (diff)
Fix indent (Tabs => Spaces) and add modelines info for follow_* files
svn path=/trunk/; revision=50245
Diffstat (limited to 'ui/gtk/follow_stream.h')
-rw-r--r--ui/gtk/follow_stream.h104
1 files changed, 58 insertions, 46 deletions
diff --git a/ui/gtk/follow_stream.h b/ui/gtk/follow_stream.h
index beba0d0219..c55abf8abc 100644
--- a/ui/gtk/follow_stream.h
+++ b/ui/gtk/follow_stream.h
@@ -30,59 +30,59 @@
/* Type of follow we are doing */
typedef enum {
- FOLLOW_TCP,
- FOLLOW_SSL,
- FOLLOW_UDP
+ FOLLOW_TCP,
+ FOLLOW_SSL,
+ FOLLOW_UDP
} follow_type_t;
/* Show Stream */
typedef enum {
- FROM_CLIENT,
- FROM_SERVER,
- BOTH_HOSTS
+ FROM_CLIENT,
+ FROM_SERVER,
+ BOTH_HOSTS
} show_stream_t;
/* Show Type */
typedef enum {
- SHOW_ASCII,
- SHOW_EBCDIC,
- SHOW_HEXDUMP,
- SHOW_CARRAY,
- SHOW_RAW
+ SHOW_ASCII,
+ SHOW_EBCDIC,
+ SHOW_HEXDUMP,
+ SHOW_CARRAY,
+ SHOW_RAW
} show_type_t;
typedef enum {
- FRS_OK,
- FRS_OPEN_ERROR,
- FRS_READ_ERROR,
- FRS_PRINT_ERROR
+ FRS_OK,
+ FRS_OPEN_ERROR,
+ FRS_READ_ERROR,
+ FRS_PRINT_ERROR
} frs_return_t;
typedef struct {
- gboolean is_server;
- GByteArray *data;
+ gboolean is_server;
+ GByteArray *data;
} follow_record_t;
typedef struct {
- follow_type_t follow_type;
- show_stream_t show_stream;
- show_type_t show_type;
- char *data_out_filename;
- GtkWidget *text;
- GtkWidget *ascii_bt;
- GtkWidget *ebcdic_bt;
- GtkWidget *hexdump_bt;
- GtkWidget *carray_bt;
- GtkWidget *raw_bt;
- GtkWidget *find_dlg_w;
- gboolean is_ipv6;
- char *filter_out_filter;
- GtkWidget *filter_te;
- GtkWidget *streamwindow;
- GList *payload;
- guint bytes_written[2]; /* Index with FROM_CLIENT or FROM_SERVER for readability. */
- guint client_port;
- address client_ip;
+ follow_type_t follow_type;
+ show_stream_t show_stream;
+ show_type_t show_type;
+ char *data_out_filename;
+ GtkWidget *text;
+ GtkWidget *ascii_bt;
+ GtkWidget *ebcdic_bt;
+ GtkWidget *hexdump_bt;
+ GtkWidget *carray_bt;
+ GtkWidget *raw_bt;
+ GtkWidget *find_dlg_w;
+ gboolean is_ipv6;
+ char *filter_out_filter;
+ GtkWidget *filter_te;
+ GtkWidget *streamwindow;
+ GList *payload;
+ guint bytes_written[2]; /* Index with FROM_CLIENT or FROM_SERVER for readability. */
+ guint client_port;
+ address client_ip;
} follow_info_t;
#define E_FOLLOW_INFO_KEY "follow_info_key"
@@ -94,21 +94,33 @@ extern GList *follow_infos;
void follow_load_text(follow_info_t *follow_info);
void follow_filter_out_stream(GtkWidget * w, gpointer parent_w);
void follow_stream(const gchar *title, follow_info_t *follow_info,
- gchar *both_directions_string,
- gchar *server_to_client_string,
- gchar *client_to_server_string);
+ gchar *both_directions_string,
+ gchar *server_to_client_string,
+ gchar *client_to_server_string);
frs_return_t follow_show(follow_info_t *follow_info,
- gboolean (*print_line)(char *, size_t, gboolean,
- void *),
- char *buffer, size_t nchars, gboolean is_server,
- void *arg, guint32 *global_pos,
- guint32 *server_packet_count,
- guint32 *client_packet_count);
+ gboolean (*print_line)(char *, size_t, gboolean, void *),
+ char *buffer, size_t nchars, gboolean is_server,
+ void *arg, guint32 *global_pos,
+ guint32 *server_packet_count,
+ guint32 *client_packet_count);
gboolean follow_add_to_gtk_text(char *buffer, size_t nchars, gboolean is_server,
- void *arg);
+ void *arg);
frs_return_t follow_read_tcp_stream(follow_info_t *follow_info, gboolean (*print_line)(char *, size_t, gboolean, void *), void *arg);
frs_return_t follow_read_udp_stream(follow_info_t *follow_info, gboolean (*print_line)(char *, size_t, gboolean, void *), void *arg);
frs_return_t follow_read_ssl_stream(follow_info_t *follow_info, gboolean (*print_line)(char *, size_t, gboolean, void *), void *arg);
#endif /* __FOLLOW_STREAM_H__ */
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */