summaryrefslogtreecommitdiff
path: root/wsutil/ws_mempbrk_int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-21 12:13:54 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-21 20:14:24 +0000
commite35aa1ff486fc89c16d657a78575c6eb54d8bdc8 (patch)
treea533a736409c3c0a1996f020181cf48f391925c9 /wsutil/ws_mempbrk_int.h
parentf12d23102406af7f05b73160a4c2c3e648f24203 (diff)
downloadwireshark-e35aa1ff486fc89c16d657a78575c6eb54d8bdc8.tar.gz
Move declarations of internal ws_mempbrk routines to a separate header.
Put the internal routines, which are only to be used by the implementation of the mempbrk functions, to a separate header file, so that they're not exported even in the standard header file. Change-Id: I92c39b138de3e4f9da1b102210b39d50728e2fd6 Reviewed-on: https://code.wireshark.org/review/7300 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/ws_mempbrk_int.h')
-rw-r--r--wsutil/ws_mempbrk_int.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/wsutil/ws_mempbrk_int.h b/wsutil/ws_mempbrk_int.h
new file mode 100644
index 0000000000..356f2241cf
--- /dev/null
+++ b/wsutil/ws_mempbrk_int.h
@@ -0,0 +1,32 @@
+/* ws_mempbrk_int.h
+ *
+ * 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 __WS_MEMPBRK_INT_H__
+#define __WS_MEMPBRK_INT_H__
+
+const guint8 *ws_mempbrk_exec(const guint8* haystack, size_t haystacklen, const tvb_pbrk_pattern* pattern, guchar *found_needle);
+
+#ifdef HAVE_SSE4_2
+void ws_mempbrk_sse42_compile(tvb_pbrk_pattern* pattern, const gchar *needles);
+const char *ws_mempbrk_sse42_exec(const char* haystack, size_t haystacklen, const tvb_pbrk_pattern* pattern, guchar *found_needle);
+#endif
+
+#endif /* __WS_MEMPBRK_INT_H__ */