Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Typedefs | Functions
frame_data_sequence.h File Reference
#include <epan/frame_data.h>

Go to the source code of this file.

Typedefs

typedef struct _frame_data_sequence frame_data_sequence
 

Functions

WS_DLL_PUBLIC frame_data_sequencenew_frame_data_sequence (void)
 Create a new frame_data_sequence.
 
WS_DLL_PUBLIC frame_dataframe_data_sequence_add (frame_data_sequence *fds, frame_data *fdata)
 Add a frame_data entry to the sequence.
 
WS_DLL_PUBLIC frame_dataframe_data_sequence_find (frame_data_sequence *fds, uint32_t num)
 Finds a frame data entry in the sequence.
 
WS_DLL_PUBLIC void free_frame_data_sequence (frame_data_sequence *fds)
 Free a frame_data_sequence and all the frame_data structures in it.
 
WS_DLL_PUBLIC void find_and_mark_frame_depended_upon (void *key, void *value, void *user_data)
 Finds and marks frame data entries that depend on a given key.
 

Detailed Description

Implements a sequence of frame_data structures

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ find_and_mark_frame_depended_upon()

WS_DLL_PUBLIC void find_and_mark_frame_depended_upon ( void *  key,
void *  value,
void *  user_data 
)

Finds and marks frame data entries that depend on a given key.

Searches for frame data entries in the sequence that depend on the specified key and marks them accordingly.

Parameters
keyThe key to search for dependencies.
valueAdditional information related to the key.
user_dataUser-defined data passed to the callback function.

◆ frame_data_sequence_add()

WS_DLL_PUBLIC frame_data * frame_data_sequence_add ( frame_data_sequence fds,
frame_data fdata 
)

Add a frame_data entry to the sequence.

Adds the given frame_data entry to the specified frame_data_sequence.

Parameters
fdsPointer to the frame data sequence to which the entry will be added.
fdataPointer to the frame data entry to be added.
Returns
Pointer to the added frame data entry, or NULL on failure.

◆ frame_data_sequence_find()

WS_DLL_PUBLIC frame_data * frame_data_sequence_find ( frame_data_sequence fds,
uint32_t  num 
)

Finds a frame data entry in the sequence.

Searches for a frame data entry with the specified number in the given frame data sequence.

Parameters
fdsPointer to the frame data sequence.
numThe frame number to find.
Returns
Pointer to the found frame data entry, or NULL if not found.

◆ free_frame_data_sequence()

WS_DLL_PUBLIC void free_frame_data_sequence ( frame_data_sequence fds)

Free a frame_data_sequence and all the frame_data structures in it.

Parameters
fdsPointer to the frame data sequence to be freed.

◆ new_frame_data_sequence()

WS_DLL_PUBLIC frame_data_sequence * new_frame_data_sequence ( void  )

Create a new frame_data_sequence.

Returns
A pointer to the newly created frame_data_sequence.