diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-04-02 14:37:49 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-04-02 14:37:49 +0000 |
commit | 049f9eac856bba91850332e90033be56dfa87f37 (patch) | |
tree | 1de2f031494726578dfd8df5ad324ca9546a0e1a /epan/epan.h | |
parent | 9c05bc3bc545ec1726561f7f33e493f81e6e59fc (diff) |
From Yaniv Kaul: constify parameters
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422
svn path=/trunk/; revision=32360
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 */ |