aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-06-16 00:20:00 +0000
committerGuy Harris <guy@alum.mit.edu>2013-06-16 00:20:00 +0000
commit8c9edf12800bc6d68894dc457e7ebaf994429da8 (patch)
treeec6efefbd4e7f8227a7b96661f721ff4ba2986c3 /wiretap/ascend-int.h
parent3846abe34d6861c6ee0bba61fcd5baa4d213885c (diff)
Have the seek-read routines take a Buffer rather than a guint8 pointer
as the "where to put the packet data" argument. This lets more of the libwiretap code be common between the read and seek-read code paths, and also allows for more flexibility in the "fill in the data" path - we can expand the buffer as needed in both cases. svn path=/trunk/; revision=49949
Diffstat (limited to 'wiretap/ascend-int.h')
-rw-r--r--wiretap/ascend-int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/ascend-int.h b/wiretap/ascend-int.h
index e53b472865..22a25bbe90 100644
--- a/wiretap/ascend-int.h
+++ b/wiretap/ascend-int.h
@@ -53,12 +53,13 @@ int ascendlex(void);
void init_parse_ascend(void);
void ascend_init_lexer(FILE_T fh);
+gboolean check_ascend(FILE_T fh, struct wtap_pkthdr *phdr);
typedef enum {
PARSED_RECORD,
PARSED_NONRECORD,
PARSE_FAILED
} parse_t;
parse_t parse_ascend(ascend_t *ascend, FILE_T fh, struct wtap_pkthdr *phdr,
- guint8 *pd);
+ Buffer *buf, guint length);
#endif /* ! __ASCEND_INT_H__ */