From 049f9eac856bba91850332e90033be56dfa87f37 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 2 Apr 2010 14:37:49 +0000 Subject: From Yaniv Kaul: constify parameters https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360 --- epan/epan.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'epan/epan.h') 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 */ -- cgit v1.2.1