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/to_str.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/to_str.h')
-rw-r--r-- | epan/to_str.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/epan/to_str.h b/epan/to_str.h index 7f139f46c1..4394a11b68 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -47,10 +47,10 @@ struct e_in6_addr; extern gchar* ep_address_to_str(const address *); extern gchar* se_address_to_str(const address *); extern void address_to_str_buf(const address *addr, gchar *buf, int buf_len); -extern gchar* bytestring_to_str(const guint8 *, guint32, char); +extern gchar* bytestring_to_str(const guint8 *, const guint32, const char); extern gchar* ether_to_str(const guint8 *); extern const gchar* ip_to_str(const guint8 *); -extern void ip_to_str_buf(const guint8 *ad, gchar *buf, int buf_len); +extern void ip_to_str_buf(const guint8 *ad, gchar *buf, const int buf_len); extern gchar* fc_to_str(const guint8 *); extern gchar* fcwwn_to_str (const guint8 *); extern gchar* ip6_to_str(const struct e_in6_addr *); @@ -62,28 +62,28 @@ extern gchar* vines_addr_to_str(const guint8 *addrp); extern gchar* time_secs_to_str(gint32); extern gchar* time_secs_to_str_unsigned(guint32); extern gchar* time_msecs_to_str(gint32); -extern gchar* abs_time_to_str(nstime_t*, absolute_time_display_e fmt); -extern gchar* abs_time_secs_to_str(time_t, absolute_time_display_e fmt); -extern void display_signed_time(gchar *, int, gint32, gint32, to_str_time_res_t); -extern void display_epoch_time(gchar *, int, time_t, gint32, to_str_time_res_t); +extern gchar* abs_time_to_str(const nstime_t*, const absolute_time_display_e fmt); +extern gchar* abs_time_secs_to_str(const time_t, const absolute_time_display_e fmt); +extern void display_signed_time(gchar *, int, const gint32, gint32, const to_str_time_res_t); +extern void display_epoch_time(gchar *, int, const time_t, gint32, const to_str_time_res_t); extern gchar* guint32_to_str(guint32 u); extern void guint32_to_str_buf(guint32 u, gchar *buf, int buf_len); -extern gchar* rel_time_to_str(nstime_t*); -extern gchar* rel_time_to_secs_str(nstime_t*); +extern gchar* rel_time_to_str(const nstime_t*); +extern gchar* rel_time_to_secs_str(const nstime_t*); extern gchar* guid_to_str(const e_guid_t*); extern gchar* guid_to_str_buf(const e_guid_t*, gchar*, int); -extern char *decode_bits_in_field(gint bit_offset, gint no_of_bits, guint64 value); +extern char *decode_bits_in_field(const gint bit_offset, const gint no_of_bits, const guint64 value); -extern char *other_decode_bitfield_value(char *buf, guint32 val, guint32 mask, - int width); -extern char *decode_bitfield_value(char *buf, guint32 val, guint32 mask, - int width); -extern const char *decode_boolean_bitfield(guint32 val, guint32 mask, int width, +extern char *other_decode_bitfield_value(char *buf, const guint32 val, const guint32 mask, + const int width); +extern char *decode_bitfield_value(char *buf, const guint32 val, const guint32 mask, + const int width); +extern const char *decode_boolean_bitfield(const guint32 val, const guint32 mask, const int width, const char *truedesc, const char *falsedesc); -extern const char *decode_numeric_bitfield(guint32 val, guint32 mask, int width, +extern const char *decode_numeric_bitfield(const guint32 val, const guint32 mask, const int width, const char *fmt); #endif /* __TO_STR_H__ */ |