nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* tap-rtp-common.h |
2 | * RTP streams handler functions used by tshark and wireshark |
||
3 | * |
||
4 | * Copyright 2008, Ericsson AB |
||
5 | * By Balint Reczey <balint.reczey@ericsson.com> |
||
6 | * |
||
7 | * most functions are copied from ui/gtk/rtp_stream.c and ui/gtk/rtp_analisys.c |
||
8 | * Copyright 2003, Alcatel Business Systems |
||
9 | * By Lars Ruoff <lars.ruoff@gmx.net> |
||
10 | * |
||
11 | * Wireshark - Network traffic analyzer |
||
12 | * By Gerald Combs <gerald@wireshark.org> |
||
13 | * Copyright 1998 Gerald Combs |
||
14 | * |
||
15 | * This program is free software; you can redistribute it and/or |
||
16 | * modify it under the terms of the GNU General Public License |
||
17 | * as published by the Free Software Foundation; either version 2 |
||
18 | * of the License, or (at your option) any later version. |
||
19 | * |
||
20 | * This program is distributed in the hope that it will be useful, |
||
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
23 | * GNU General Public License for more details. |
||
24 | * |
||
25 | * You should have received a copy of the GNU General Public License |
||
26 | * along with this program; if not, write to the Free Software |
||
27 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
28 | */ |
||
29 | |||
30 | #ifndef __TAP_RTP_COMMON_H__ |
||
31 | #define __TAP_RTP_COMMON_H__ |
||
32 | |||
33 | #ifdef __cplusplus |
||
34 | extern "C" { |
||
35 | #endif /* __cplusplus */ |
||
36 | |||
37 | /* type of error when saving voice in a file didn't succeed */ |
||
38 | typedef enum { |
||
39 | TAP_RTP_WRONG_CODEC, |
||
40 | TAP_RTP_WRONG_LENGTH, |
||
41 | TAP_RTP_PADDING_ERROR, |
||
42 | TAP_RTP_SHORT_FRAME, |
||
43 | TAP_RTP_FILE_OPEN_ERROR, |
||
44 | TAP_RTP_FILE_WRITE_ERROR, |
||
45 | TAP_RTP_NO_DATA |
||
46 | } error_type_t; |
||
47 | |||
48 | typedef struct _tap_rtp_save_info_t { |
||
49 | FILE *fp; |
||
50 | guint32 count; |
||
51 | error_type_t error_type; |
||
52 | gboolean saved; |
||
53 | } tap_rtp_save_info_t; |
||
54 | |||
55 | struct _rtp_stream_info; |
||
56 | |||
57 | void rtpstream_reset_cb(void*); |
||
58 | void rtp_write_header(struct _rtp_stream_info*, FILE*); |
||
59 | int rtpstream_packet(void*, packet_info*, epan_dissect_t *, const void *); |
||
60 | |||
61 | #ifdef __cplusplus |
||
62 | } |
||
63 | #endif /* __cplusplus */ |
||
64 | |||
65 | #endif /* __TAP_RTP_COMMON_H__ */ |
||
66 | |||
67 | /* |
||
68 | * Editor modelines - http://www.wireshark.org/tools/modelines.html |
||
69 | * |
||
70 | * Local variables: |
||
71 | * c-basic-offset: 4 |
||
72 | * tab-width: 8 |
||
73 | * indent-tabs-mode: nil |
||
74 | * End: |
||
75 | * |
||
76 | * vi: set shiftwidth=4 tabstop=8 expandtab: |
||
77 | * :indentSize=4:tabSize=8:noTabs=true: |
||
78 | */ |