aboutsummaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-03-31 08:20:28 +0000
committerGuy Harris <guy@alum.mit.edu>1999-03-31 08:20:28 +0000
commitf1e024b6057ab5c7128eefe9cc31dbcf87651f18 (patch)
tree7757124c109b8e721fea9646f28b31020df80cbc /packet.h
parentccba477d7fbd4dc69691fa6329770a6e110d7940 (diff)
downloadwireshark-f1e024b6057ab5c7128eefe9cc31dbcf87651f18.tar.gz
wireshark-f1e024b6057ab5c7128eefe9cc31dbcf87651f18.tar.bz2
wireshark-f1e024b6057ab5c7128eefe9cc31dbcf87651f18.zip
Move the bitfield-decoding routines to "packet.h", along with other
helper routines for packet dissecting, and away from "util.c", which is now all GUI-related. (Among other things, this makes life more pleasant for Gilbert Ramirez's "tethereal" stuff, although a lot more separation of GUI from other stuff needs to be done to make that - or a "curses"-based variant of Ethereal, or a variant using some other GUI toolkit - work smoothly.) svn path=/trunk/; revision=235
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index 3a36e1b08b..2dbf0cbacd 100644
--- a/packet.h
+++ b/packet.h
@@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.43 1999/03/30 04:41:00 guy Exp $
+ * $Id: packet.h,v 1.44 1999/03/31 08:20:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -243,6 +243,12 @@ int get_token_len(const u_char *linep, const u_char *lineend,
gchar* format_text(const u_char *line, int len);
gchar* val_to_str(guint32, const value_string *, const char *);
gchar* match_strval(guint32, const value_string*);
+const char *decode_boolean_bitfield(guint32 val, guint32 mask, int width,
+ const char *truedesc, const char *falsedesc);
+const char *decode_enumerated_bitfield(guint32 val, guint32 mask, int width,
+ const value_string *tab, const char *fmt);
+const char *decode_numeric_bitfield(guint32 val, guint32 mask, int width,
+ const char *fmt);
gint check_col(frame_data *, gint);
#if __GNUC__ == 2
void col_add_fstr(frame_data *, gint, gchar *, ...)