Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
util.h File Reference
#include <stdint.h>

Go to the source code of this file.

Functions

char * get_args_as_string (int argc, char **argv, int optindex)
 
void compute_timestamp_diff (int *diffsec, int *diffusec, uint32_t sec1, uint32_t usec1, uint32_t sec2, uint32_t usec2)
 
const char * get_conn_cfilter (void)
 
bool display_is_remote (void)
 
const char * get_last_open_dir (void)
 
void set_last_open_dir (const char *dirname)
 
const char * get_open_dialog_initial_dir (void)
 

Detailed Description

Utility definitions

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

◆ display_is_remote()

bool display_is_remote ( void  )

Check if we're running on a remote connection.

Returns
true if we're running remotely, false if local.

◆ get_last_open_dir()

const char * get_last_open_dir ( void  )
extern

Get the latest directory in which a file has been opened.

Returns
the dirname

Get the latest opened directory.

Returns
the dirname

◆ get_open_dialog_initial_dir()

const char * get_open_dialog_initial_dir ( void  )
extern

Get the initial directory to use in file open dialogs.

Returns
the dirname

◆ set_last_open_dir()

void set_last_open_dir ( const char *  dirname)
extern

Set the latest directory in which a file has been opened.

Parameters
dirnamethe dirname