forked from osmocom/wireshark
8aa14236f8
Have the routines that create them take a pointer to a struct packet_provider_data, store that in the tvbuff data, and use it to get the wtap from which packets are being read. While we're at it, don't include globals.h in any header files, and include it in source files iff the source file actually uses cfile. Add whatever includes that requires. Change-Id: I9f1ee391f951dc427ff62c80f67aa4877a37c229 Reviewed-on: https://code.wireshark.org/review/24733 Reviewed-by: Guy Harris <guy@alum.mit.edu>
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/* frame_tvbuff.h
|
|
* Implements a tvbuff for frame
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __FRAME_TVBUFF_H__
|
|
#define __FRAME_TVBUFF_H__
|
|
|
|
#include "cfile.h"
|
|
|
|
#include <wiretap/wtap.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
extern tvbuff_t *frame_tvbuff_new(const struct packet_provider_data *prov,
|
|
const frame_data *fd, const guint8 *buf);
|
|
|
|
extern tvbuff_t *frame_tvbuff_new_buffer(const struct packet_provider_data *prov,
|
|
const frame_data *fd, Buffer *buf);
|
|
|
|
extern tvbuff_t *file_tvbuff_new(const struct packet_provider_data *prov,
|
|
const frame_data *fd, const guint8 *buf);
|
|
|
|
extern tvbuff_t *file_tvbuff_new_buffer(const struct packet_provider_data *prov,
|
|
const frame_data *fd, Buffer *buf);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __FRAME_TVBUFF_H__ */
|
|
|
|
/*
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
*
|
|
* Local variables:
|
|
* c-basic-offset: 8
|
|
* tab-width: 8
|
|
* indent-tabs-mode: t
|
|
* End:
|
|
*
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
*/
|