HACK: 2nd try to match RowsetProperties
[wireshark-wip.git] / epan / dissectors / packet-mpeg-sect.h
blobdeb0ce69db201c586bbfae9dfb4651ce20adf614
1 /* packet-mpeg-sect.h
2 * Declarations of exported routines from mpeg-sect dissector
3 * Copyright 2012, Weston Schmidt <weston_schmidt@alumni.purdue.edu>
5 * $Id$
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __PACKET_MPEG_SECT_H__
27 #define __PACKET_MPEG_SECT_H__
29 #define PACKET_MPEG_SECT_PI__TABLE_ID 0
30 #define PACKET_MPEG_SECT_PI__SSI 1
31 #define PACKET_MPEG_SECT_PI__RESERVED 2
32 #define PACKET_MPEG_SECT_PI__LENGTH 3
33 #define PACKET_MPEG_SECT_PI__SIZE 4
35 /* convert a byte that contains two 4bit BCD digits into a decimal value */
36 #define MPEG_SECT_BCD44_TO_DEC(x) (((x&0xf0) >> 4) * 10 + (x&0x0f))
39 * Used to read a date provided in MJD format into a utc_time structure
41 extern gint
42 packet_mpeg_sect_mjd_to_utc_time(tvbuff_t *tvb, gint offset, nstime_t *utc_time);
45 * Used to process the 'standard' mpeg section header that is described below
46 * and populate the data into the tree
48 extern guint
49 packet_mpeg_sect_header(tvbuff_t *tvb, guint offset,
50 proto_tree *tree, guint *sect_len, gboolean *ssi);
53 * Used to return all the values & items for 'strict' processing of the
54 * sub-dissectors that make use of this dissector
56 extern guint
57 packet_mpeg_sect_header_extra(tvbuff_t *tvb, guint offset, proto_tree *tree,
58 guint *sect_len, guint *reserved, gboolean *ssi,
59 proto_item **items);
62 * Used to process the mpeg CRC information & report erorrs found with it.
64 extern guint
65 packet_mpeg_sect_crc(tvbuff_t *tvb, packet_info *pinfo,
66 proto_tree *tree, guint start, guint end);
67 #endif