Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
18extern "C" {
19#endif /* __cplusplus */
20
31char *get_args_as_string(int argc, char **argv, int optindex);
32
43void compute_timestamp_diff(int *diffsec, int *diffusec,
44 uint32_t sec1, uint32_t usec1, uint32_t sec2, uint32_t usec2);
45
58const char *get_conn_cfilter(void);
59
66bool display_is_remote(void);
67
72extern const char *get_last_open_dir(void);
73
77extern void set_last_open_dir(const char *dirname);
78
82extern const char *get_open_dialog_initial_dir(void);
83
84#ifdef __cplusplus
85}
86#endif /* __cplusplus */
87
88#endif /* __UTIL_H__ */
const char * get_conn_cfilter(void)
Build a capture filter string matching the current remote connection.
Definition util.c:151
void set_last_open_dir(const char *dirname)
Set the most recently used file-open directory.
Definition util.c:355
const char * get_last_open_dir(void)
Return the most recently used file-open directory.
Definition util.c:349
bool display_is_remote(void)
Determine whether the current session is remote.
Definition util.c:334
void compute_timestamp_diff(int *diffsec, int *diffusec, uint32_t sec1, uint32_t usec1, uint32_t sec2, uint32_t usec2)
Compute the difference between two seconds/microseconds timestamps.
Definition util.c:83
const char * get_open_dialog_initial_dir(void)
Return the initial directory to present in file-open dialogs.
Definition util.c:378
char * get_args_as_string(int argc, char **argv, int optindex)
Concatenate command-line arguments into a single space-separated string.
Definition util.c:40