diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-04-03 18:18:50 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-04-03 18:18:50 +0000 |
commit | 6812b68eb1973d4a439cc1342890353982a42a57 (patch) | |
tree | b191b600b7710d04062effdc3f43d243d1150b55 /epan/epan.h | |
parent | 68ad976a55954f7c4859c9402e4c219cf1fb5d45 (diff) | |
download | wireshark-6812b68eb1973d4a439cc1342890353982a42a57.tar.gz |
From Yaniv Kaul: constify parameters
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422
From me: Fix a number of instances where the function prototype or
the function definition wasn't changed so there was a mismatch
thus causing Windows (but not gcc) compilation errors.
svn path=/trunk/; revision=32365
Diffstat (limited to 'epan/epan.h')
-rw-r--r-- | epan/epan.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/epan.h b/epan/epan.h index d7c9742ad3..bfad1c8d5c 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -89,16 +89,16 @@ epan_get_version(void); /* initialize an existing single packet dissection */ epan_dissect_t* -epan_dissect_init(epan_dissect_t *edt, gboolean create_proto_tree, gboolean proto_tree_visible); +epan_dissect_init(epan_dissect_t *edt, const gboolean create_proto_tree, const gboolean proto_tree_visible); /* get a new single packet dissection */ /* should be freed using epan_dissect_free() after packet dissection completed */ epan_dissect_t* -epan_dissect_new(gboolean create_proto_tree, gboolean proto_tree_visible); +epan_dissect_new(const gboolean create_proto_tree, const gboolean proto_tree_visible); /* Indicate whether we should fake protocols or not */ void -epan_dissect_fake_protocols(epan_dissect_t *edt, gboolean fake_protocols); +epan_dissect_fake_protocols(epan_dissect_t *edt, const gboolean fake_protocols); /* run a single packet dissection */ void @@ -111,7 +111,7 @@ epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t *dfcode); /* fill the dissect run output into the packet list columns */ void -epan_dissect_fill_in_columns(epan_dissect_t *edt, gboolean fill_col_exprs, gboolean fill_fd_colums); +epan_dissect_fill_in_columns(epan_dissect_t *edt, const gboolean fill_col_exprs, const gboolean fill_fd_colums); /* releases resources attached to the packet dissection. DOES NOT free the actual pointer */ void @@ -124,6 +124,6 @@ epan_dissect_free(epan_dissect_t* edt); /* Sets custom column */ const gchar * epan_custom_set(epan_dissect_t *edt, int id, - gchar *result, gchar *expr, int size ); + gchar *result, gchar *expr, const int size ); #endif /* EPAN_H */ |