Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ws_process_lookup_backend_t Struct Reference

#include <process_lookup_int.h>

Public Attributes

bool supported
void *(* create )(char **err_msg)
void(* destroy )(void *state)
bool(* refresh )(void *state, ws_process_lookup_add_socket_func add, void *ctx, char **err_msg)
bool(* describe )(void *state, uint32_t pid, ws_process_detail_t detail, ws_process_info_t *info)

Detailed Description

A platform backend. err_msg arguments are never NULL; a message stored there must be g_malloc()ed.

Member Data Documentation

◆ create

void *(* ws_process_lookup_backend_t::create) (char **err_msg)

Set up the per-context state; NULL, with *err_msg set, on failure.

◆ describe

bool(* ws_process_lookup_backend_t::describe) (void *state, uint32_t pid, ws_process_detail_t detail, ws_process_info_t *info)

Fill in what is known about a process; info->pid is set on entry and the rest is zero. The strings must be g_malloc()ed. With WS_PROCESS_DETAIL_BASIC only the name and the start time are filled in, and the rest is not read. Returns false if there is no such process.

◆ destroy

void(* ws_process_lookup_backend_t::destroy) (void *state)

Free the per-context state.

◆ refresh

bool(* ws_process_lookup_backend_t::refresh) (void *state, ws_process_lookup_add_socket_func add, void *ctx, char **err_msg)

Report every socket that has an owning process, through add().

◆ supported

bool ws_process_lookup_backend_t::supported

Whether this platform is supported at all.


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