Wireshark
4.3.0
The Wireshark network protocol analyzer
ui
util.h
Go to the documentation of this file.
1
12
#ifndef __UTIL_H__
13
#define __UTIL_H__
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
/* __cplusplus */
18
19
/* Collect command-line arguments as a string consisting of the arguments,
20
* separated by spaces.
21
*/
22
char
*get_args_as_string(
int
argc,
char
**argv,
int
optindex);
23
24
/* Compute the difference between two seconds/microseconds time stamps.
25
* Beware: we're using nanosecond resolution now and function is currently unused
26
*/
27
void
compute_timestamp_diff(
int
*diffsec,
int
*diffusec,
28
uint32_t sec1, uint32_t usec1, uint32_t sec2, uint32_t usec2);
29
30
/* Try to figure out if we're remotely connected, e.g. via ssh or
31
Terminal Server, and create a capture filter that matches aspects of the
32
connection. We match the following environment variables:
33
34
SSH_CONNECTION (ssh): <remote IP> <remote port> <local IP> <local port>
35
SSH_CLIENT (ssh): <remote IP> <remote port> <local port>
36
REMOTEHOST (tcsh, others?): <remote name>
37
DISPLAY (x11): [remote name]:<display num>
38
CLIENTNAME (terminal server): <remote name>
39
*/
40
const
char
*get_conn_cfilter(
void
);
41
45
bool
display_is_remote
(
void
);
46
51
extern
const
char
*
get_last_open_dir
(
void
);
52
57
extern
void
set_last_open_dir
(
const
char
*dirname);
58
63
extern
const
char
*
get_open_dialog_initial_dir
(
void
);
64
65
#ifdef __cplusplus
66
}
67
#endif
/* __cplusplus */
68
69
#endif
/* __UTIL_H__ */
get_open_dialog_initial_dir
const char * get_open_dialog_initial_dir(void)
Definition:
util.c:378
set_last_open_dir
void set_last_open_dir(const char *dirname)
Definition:
util.c:355
get_last_open_dir
const char * get_last_open_dir(void)
Definition:
util.c:349
display_is_remote
bool display_is_remote(void)
Definition:
util.c:334
Generated by
1.9.1