summaryrefslogtreecommitdiff
path: root/wsutil/cpu_info.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-21 13:20:18 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-21 20:21:03 +0000
commit00f23a4f5c21377c2a1421bbe884518e14898a88 (patch)
tree8e6e4993bd1abb7129d694eb5107dde5bb166126 /wsutil/cpu_info.h
parent9e8fb87a3eec510f0b6117af029dbc3651ef9c30 (diff)
downloadwireshark-00f23a4f5c21377c2a1421bbe884518e14898a88.tar.gz
Move the routine to get a CPU information string to wsutil.
Change-Id: Ibf6e57d7382cbbd831a0367fd48d684118712408 Reviewed-on: https://code.wireshark.org/review/2523 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/cpu_info.h')
-rw-r--r--wsutil/cpu_info.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/wsutil/cpu_info.h b/wsutil/cpu_info.h
new file mode 100644
index 0000000000..6692ffcbb9
--- /dev/null
+++ b/wsutil/cpu_info.h
@@ -0,0 +1,39 @@
+/* cpu_info.h
+ * Declarations of outines to report information about the CPU on which
+ * we're running
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __WSUTIL_CPU_INFO_H__
+#define __WSUTIL_CPU_INFO_H__
+
+#include "ws_symbol_export.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+WS_DLL_PUBLIC void get_cpu_info(GString *str);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __WSUTIL_CPU_INFO_H__ */