aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/bytes_view.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-07-16 01:49:01 +0000
committerGuy Harris <guy@alum.mit.edu>2012-07-16 01:49:01 +0000
commit268520b707fc41c6a7d97955ed3a7617137f8835 (patch)
tree8d47d6fb7599516a01457badafcc92ede27c4c0d /ui/gtk/bytes_view.c
parent6469a1d606dbc95288c0636c9f7a7b95f87d5ab5 (diff)
For the encoding and format, use the enum types.
Add some comments. svn path=/trunk/; revision=43736
Diffstat (limited to 'ui/gtk/bytes_view.c')
-rw-r--r--ui/gtk/bytes_view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/gtk/bytes_view.c b/ui/gtk/bytes_view.c
index ef3d395397..d8487d9927 100644
--- a/ui/gtk/bytes_view.c
+++ b/ui/gtk/bytes_view.c
@@ -77,16 +77,16 @@ struct _BytesView
int state;
/* data */
- int encoding;
- int format;
- guint8 *pd;
- int len;
+ packet_char_enc encoding; /* ASCII or EBCDIC */
+ bytes_view_type format; /* bytes in hex or bytes as bits */
+ guint8 *pd; /* packet data */
+ int len; /* length of packet data in bytes */
/* data-highlight */
int start[2];
int end[2];
- int per_line;
- int use_digits;
+ int per_line; /* number of bytes shown per line */
+ int use_digits; /* number of hex digits of byte offset */
};
#include "bytes_view.h"