| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Attributes | List of all members
wtap_blocktype_t Struct Reference

Describes a registered pcapng block type, including its identity, human-readable metadata, lifecycle callbacks, and known options. More...

`#include <wtap_opttypes.h>`

## Public Attributes
wtap_block_type_t | block_type
const char * | name
const char * | description
wtap_block_create_func | create
wtap_mand_free_func | free_mand
wtap_mand_copy_func | copy_mand
GHashTable * | options

## Detailed Description

Describes a registered pcapng block type, including its identity, human-readable metadata, lifecycle callbacks, and known options.

## Member Data Documentation

## ◆ block_type

wtap_block_type_t wtap_blocktype_t::block_type

Internal enumeration value identifying this block type.

## ◆ copy_mand

wtap_mand_copy_func wtap_blocktype_t::copy_mand

Callback invoked to deep-copy the mandatory data when a block is duplicated.

## ◆ create

wtap_block_create_func wtap_blocktype_t::create

Callback invoked to allocate and initialize the mandatory data for a new block of this type.

## ◆ description

const char* wtap_blocktype_t::description

Human-readable description of this block type, suitable for display.

## ◆ free_mand

wtap_mand_free_func wtap_blocktype_t::free_mand

Callback invoked to release resources held by the mandatory data when a block is destroyed.

## ◆ name

const char* wtap_blocktype_t::name

Short programmatic name for this block type.

## ◆ options

GHashTable* wtap_blocktype_t::options

Hash table mapping option codes to their definitions for all options known to this block type.

The documentation for this struct was generated from the following file:

- /builds/wireshark/wireshark/wiretap/wtap_opttypes.h