HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / wiretap / ascend-int.h
blob22a25bbe90f104527bc8cf1f7e4f0e98ff558170
1 /* ascend-int.h
2 * Definitions for routines common to multiple modules in the Lucent/Ascend
3 * capture file reading code code, but not used outside that code.
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 __ASCEND_INT_H__
27 #define __ASCEND_INT_H__
29 #ifdef HAVE_SYS_TIME_H
30 #include <sys/time.h>
31 #endif
33 #include <glib.h>
34 #include "ws_symbol_export.h"
36 extern int at_eof;
38 extern const gchar *ascend_parse_error;
41 * Pointer to the pseudo-header for the current packet.
43 extern struct ascend_phdr *pseudo_header;
45 typedef struct {
46 time_t inittime;
47 gboolean adjusted;
48 gint64 next_packet_seek_start;
49 } ascend_t;
51 /* Here we provide interfaces to make our scanner act and look like lex */
52 int ascendlex(void);
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);
57 typedef enum {
58 PARSED_RECORD,
59 PARSED_NONRECORD,
60 PARSE_FAILED
61 } parse_t;
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__ */