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