diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-16 09:16:57 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-16 09:16:57 +0000 |
commit | 3b9f6dfab4f4efe1d97450d1d69d1b37f822ad5f (patch) | |
tree | 8e5b80fcfb0adba8be49e4ba7ca51eb624864166 /wsutil/bitswap.h | |
parent | 4f78d3c69b4c7356956381c5fe1e7b874ca04654 (diff) | |
download | wireshark-3b9f6dfab4f4efe1d97450d1d69d1b37f822ad5f.tar.gz wireshark-3b9f6dfab4f4efe1d97450d1d69d1b37f822ad5f.tar.bz2 wireshark-3b9f6dfab4f4efe1d97450d1d69d1b37f822ad5f.zip |
Move bitswap.[ch] from epan to wsutil.
svn path=/trunk/; revision=53365
Diffstat (limited to 'wsutil/bitswap.h')
-rw-r--r-- | wsutil/bitswap.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/wsutil/bitswap.h b/wsutil/bitswap.h new file mode 100644 index 0000000000..bbf374b01e --- /dev/null +++ b/wsutil/bitswap.h @@ -0,0 +1,42 @@ +/* bitswap.h + * Macro to bitswap a byte by looking it up in a table + * + * $Id$ + * + * 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 __BITSWAP_H__ +#define __BITSWAP_H__ + +#include "ws_symbol_export.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +WS_DLL_PUBLIC const guint8 swaptab[256]; + +#define BIT_SWAP(b) (swaptab[b]) + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* bitswap.h */ |