aboutsummaryrefslogtreecommitdiffstats
path: root/simple_dialog.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-03 06:59:25 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-03 06:59:25 +0000
commit4096029a6678887f0e365f65da3aef593226efbe (patch)
tree765db407bb466c2b2ce7c103b504cd8771c04c45 /simple_dialog.h
parent302c1164834d14e5b239f17b04e41c503c07605b (diff)
Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c",
and move it to "simple_dialog.h" and "gtk/simple_dialog.c". svn path=/trunk/; revision=1414
Diffstat (limited to 'simple_dialog.h')
-rw-r--r--simple_dialog.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/simple_dialog.h b/simple_dialog.h
new file mode 100644
index 0000000000..9afdf1f1e5
--- /dev/null
+++ b/simple_dialog.h
@@ -0,0 +1,54 @@
+/* simple_dialog.h
+ * Definitions for dialog box routines with toolkit-independent APIs but
+ * toolkit-dependent implementations.
+ *
+ * $Id: simple_dialog.h,v 1.1 2000/01/03 06:59:09 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __DIALOG_H__
+#define __DIALOG_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* Dialog type. */
+#define ESD_TYPE_INFO 0
+#define ESD_TYPE_WARN 1
+#define ESD_TYPE_CRIT 2
+
+/* Which buttons to display. */
+#define ESD_BTN_OK 0
+#define ESD_BTN_CANCEL 1
+
+#if __GNUC__ == 2
+void simple_dialog(gint, gint *, gchar *, ...)
+ __attribute__((format (printf, 3, 4)));
+#else
+void simple_dialog(gint, gint *, gchar *, ...);
+#endif
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __DIALOG_H__ */