summaryrefslogtreecommitdiff
path: root/tap-rtp-common.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-02-03 12:36:37 +0000
committerGuy Harris <guy@alum.mit.edu>2008-02-03 12:36:37 +0000
commit0ed69712733a236c115778593fc89a999ed734ed (patch)
tree2c42e59c5dfa082d51f3c224f5597b411933fa75 /tap-rtp-common.h
parentc8276a5c91db3d8a7ceff557d63145720f2a645f (diff)
downloadwireshark-0ed69712733a236c115778593fc89a999ed734ed.tar.gz
Add the missing files from Balint Reczey's patch for bug 2233.
svn path=/trunk/; revision=24253
Diffstat (limited to 'tap-rtp-common.h')
-rw-r--r--tap-rtp-common.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/tap-rtp-common.h b/tap-rtp-common.h
new file mode 100644
index 0000000000..b7b07a8bfe
--- /dev/null
+++ b/tap-rtp-common.h
@@ -0,0 +1,49 @@
+/* tap-rtp-common.h
+ * RTP streams handler functions used by tshark and wireshark
+ *
+ * $Id$
+ *
+ * Copyright 2008, Ericsson AB
+ * By Balint Reczey <balint.reczey@ericsson.com>
+ *
+ * most functions are copied from gtk/rtp_stream.c and gtk/rtp_analisys.c
+ * Copyright 2003, Alcatel Business Systems
+ * By Lars Ruoff <lars.ruoff@gmx.net>
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef TAP_RTP_COMMON_H_INCLUDED
+#define TAP_RTP_COMMON_H_INCLUDED
+
+#include "gtk/rtp_stream.h"
+
+gint rtp_stream_info_cmp(gconstpointer, gconstpointer);
+void rtpstream_reset_cb(void*);
+void rtp_write_header(rtp_stream_info_t*, FILE*);
+void rtp_write_sample(rtp_sample_t*, FILE*);
+int rtpstream_packet(void*, packet_info*, epan_dissect_t *, const void *);
+
+/* The one and only global rtpstream_tapinfo_t structure for tshark and wireshark.
+ */
+static rtpstream_tapinfo_t the_tapinfo_struct =
+ {0, NULL, 0, TAP_ANALYSE, NULL, NULL, NULL, 0, FALSE};
+
+
+#endif /*TAP_RTP_COMMON_H_INCLUDED*/