aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/crash_info.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-01-15 21:54:41 +0000
committerGuy Harris <guy@alum.mit.edu>2013-01-15 21:54:41 +0000
commit05825b02cd1ea005972b80c5f8e7cf2c4fff27a0 (patch)
tree523e826dfb0129ccc793b4439284c8f86d38d019 /wsutil/crash_info.h
parentf4e862fb1a763685768a25d9d567007a2cdb29f5 (diff)
Add some routines to wsutil to, at least on some platforms, add
information to crash dumps and the like. (Currently, we only handle OS X's CrashReporter, but we should do this on other platforms where this information can be added and would be helpful.) White space tweaks. svn path=/trunk/; revision=47104
Diffstat (limited to 'wsutil/crash_info.h')
-rw-r--r--wsutil/crash_info.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/wsutil/crash_info.h b/wsutil/crash_info.h
new file mode 100644
index 0000000000..43ccc5c9eb
--- /dev/null
+++ b/wsutil/crash_info.h
@@ -0,0 +1,39 @@
+/* crash_info.h
+ * Routines to try to provide more useful information in crash dumps.
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __CRASH_INFO_H__
+#define __CRASH_INFO_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern void ws_add_crash_info(const char *fmt, ...)
+ G_GNUC_PRINTF(1,2);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __CRASH_INFO_H__ */