From 6d33c124d55c1fdbe8225e82256b77e8f0a13e3c Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 16 Jul 2015 09:14:07 -0700 Subject: Add display_is_remote. Add a display_is_remote function and use it instead of get_conn_cfilter to check for remoteness. Change-Id: Ia93d113afec36ede55daf7dc8394b2dc0d8c9abf Reviewed-on: https://code.wireshark.org/review/9659 Reviewed-by: Gerald Combs --- ui/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/util.h') diff --git a/ui/util.h b/ui/util.h index 5e88428907..22898fd0af 100644 --- a/ui/util.h +++ b/ui/util.h @@ -50,6 +50,11 @@ void compute_timestamp_diff(gint *diffsec, gint *diffusec, */ const char *get_conn_cfilter(void); +/** Check if we're running on a remote connection. + * @return TRUE if we're running remotely, FALSE if local. + */ +gboolean display_is_remote(void); + /** Set the latest opened directory. * Will already be done when using file_selection_new(). * -- cgit v1.2.3