summaryrefslogtreecommitdiffstats
path: root/ui/simple_dialog.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
commita86c5f7cae7ec9a3398300555a0b644689d946a1 (patch)
tree39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /ui/simple_dialog.h
parentReleasing progress-linux version 4.2.6-1~progress7.99u1. (diff)
downloadwireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz
wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/simple_dialog.h')
-rw-r--r--ui/simple_dialog.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/ui/simple_dialog.h b/ui/simple_dialog.h
index d99b0ee3..d8e01000 100644
--- a/ui/simple_dialog.h
+++ b/ui/simple_dialog.h
@@ -13,6 +13,10 @@
#ifndef __SIMPLE_DIALOG_UI_H__
#define __SIMPLE_DIALOG_UI_H__
+#include <glib.h>
+
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -93,12 +97,12 @@ typedef enum {
* get rid of primary_start and primary_end and reduce the amount of
* gymnastics we have to do in the Qt UI.
*/
-extern gpointer simple_dialog(ESD_TYPE_E type, gint btn_mask,
- const gchar *msg_format, ...)
+extern void *simple_dialog(ESD_TYPE_E type, int btn_mask,
+ const char *msg_format, ...)
G_GNUC_PRINTF(3, 4);
-extern gpointer simple_dialog_async(ESD_TYPE_E type, gint btn_mask,
- const gchar *msg_format, ...)
+extern void *simple_dialog_async(ESD_TYPE_E type, int btn_mask,
+ const char *msg_format, ...)
G_GNUC_PRINTF(3, 4);
/** Surround the primary dialog message text by
@@ -122,7 +126,7 @@ extern char *simple_dialog_format_message(const char *msg);
* Alert box, with optional "don't show this message again" variable
* and checkbox, and optional secondary text.
*/
-extern void simple_message_box(ESD_TYPE_E type, gboolean *notagain,
+extern void simple_message_box(ESD_TYPE_E type, bool *notagain,
const char *secondary_msg,
const char *msg_format, ...) G_GNUC_PRINTF(4, 5);