2 * Definitions for routines common to multiple modules in the Lucent/Ascend
3 * capture file reading code code, but not used outside that code.
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 __ASCEND_INT_H__
27 #define __ASCEND_INT_H__
29 #ifdef HAVE_SYS_TIME_H
34 #include "ws_symbol_export.h"
38 extern const gchar
*ascend_parse_error
;
41 * Pointer to the pseudo-header for the current packet.
43 extern struct ascend_phdr
*pseudo_header
;
48 gint64 next_packet_seek_start
;
51 /* Here we provide interfaces to make our scanner act and look like lex */
54 void init_parse_ascend(void);
55 void ascend_init_lexer(FILE_T fh
);
56 gboolean
check_ascend(FILE_T fh
, struct wtap_pkthdr
*phdr
);
62 parse_t
parse_ascend(ascend_t
*ascend
, FILE_T fh
, struct wtap_pkthdr
*phdr
,
63 Buffer
*buf
, guint length
);
65 #endif /* ! __ASCEND_INT_H__ */