HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / ui / follow.h
blobf43df5ddb03c71bab2cd55313e5b1df7b19c8397
1 /* follow.h
2 * Common routines for following data streams (qt/gtk)
4 * $Id$
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 * USA.
26 #ifndef __FOLLOW__H__
27 #define __FOLLOW__H__
29 #ifdef SSL_PLUGIN
30 #include "packet-ssl-utils.h"
31 #else
32 #include <epan/dissectors/packet-ssl-utils.h>
33 #endif
35 #ifdef __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
39 typedef struct {
40 gboolean is_from_server;
41 StringInfo data;
42 } SslDecryptedRecord;
44 /* Type of follow we are doing */
45 typedef enum {
46 FOLLOW_TCP,
47 FOLLOW_SSL,
48 FOLLOW_UDP
49 } follow_type_t;
51 /* Show Stream */
52 typedef enum {
53 FROM_CLIENT,
54 FROM_SERVER,
55 BOTH_HOSTS
56 } show_stream_t;
58 /* Show Type */
59 typedef enum {
60 SHOW_ASCII,
61 SHOW_EBCDIC,
62 SHOW_HEXDUMP,
63 SHOW_CARRAY,
64 SHOW_RAW
65 } show_type_t;
67 typedef enum {
68 FRS_OK,
69 FRS_OPEN_ERROR,
70 FRS_READ_ERROR,
71 FRS_PRINT_ERROR
72 } frs_return_t;
74 typedef struct {
75 gboolean is_server;
76 GByteArray *data;
77 } follow_record_t;
79 #ifdef HAVE_LIBZ
80 gboolean
81 parse_http_header(char *data, size_t len, size_t *content_start);
82 #endif
84 #ifdef __cplusplus
86 #endif
88 #endif
91 * Editor modelines
93 * Local Variables:
94 * c-basic-offset: 4
95 * tab-width: 8
96 * indent-tabs-mode: nil
97 * End:
99 * ex: set shiftwidth=4 tabstop=8 expandtab:
100 * :indentSize=4:tabSize=8:noTabs=true: