|
Wireshark 5.1.0
The Wireshark network protocol analyzer
|
#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) |
A platform backend. err_msg arguments are never NULL; a message stored there must be g_malloc()ed.
| void *(* ws_process_lookup_backend_t::create) (char **err_msg) |
Set up the per-context state; NULL, with *err_msg set, on failure.
| 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.
| void(* ws_process_lookup_backend_t::destroy) (void *state) |
Free the per-context state.
| 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().
| bool ws_process_lookup_backend_t::supported |
Whether this platform is supported at all.