Libtrap: Internal development docs  0.11.7
Data Fields
tb_block_s Struct Reference

#include <trap_buffer.h>

Collaboration diagram for tb_block_s:
Collaboration graph
[legend]

Data Fields

char * write_data
 
char * read_data
 
uint16_t refcount
 
pthread_mutex_t lock
 
struct tb_block_data_s data [0]
 

Detailed Description

Definition at line 73 of file trap_buffer.h.

Field Documentation

◆ data

struct tb_block_data_s tb_block_s::data[0]

Pointer to data in the block (to the header of the first message)

Definition at line 97 of file trap_buffer.h.

◆ lock

pthread_mutex_t tb_block_s::lock

Lock the block

Definition at line 92 of file trap_buffer.h.

◆ read_data

char* tb_block_s::read_data

Pointer to the space for adding new data (to the header of message)

Definition at line 82 of file trap_buffer.h.

◆ refcount

uint16_t tb_block_s::refcount

Reference counter with non-zero value means that the block is used and cannot be freed.

Definition at line 87 of file trap_buffer.h.

◆ write_data

char* tb_block_s::write_data

Pointer to the space for adding new data (to the header of message)

Definition at line 77 of file trap_buffer.h.


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