diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-15 01:05:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-15 01:05:03 +0000 |
commit | 61867d0b2f80971dc6927c50f61a4d2bb0420cad (patch) | |
tree | a4cfeca9c61d79a3372b925a99cf9606efcce64b /epan/proto.h | |
parent | 04b18f44c1af4da3c8c089c58bbc9bb2a1362bc1 (diff) |
Eliminate fvalue_set() in favor of routines that take arguments
appropriate for particular FT_ types. This lets us do some more type
checking and lets us use const pointers when appropriate.
Constify a bunch of stuff, and don't cast away constness.
svn path=/trunk/; revision=54811
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/proto.h b/epan/proto.h index 4b4053284f..bb573ad11a 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -659,7 +659,7 @@ WS_DLL_PUBLIC proto_tree* proto_item_add_subtree(proto_item *ti, const gint idx) /** Get an existing subtree under an item. @param ti the parent item of the subtree @return the subtree or NULL */ -WS_DLL_PUBLIC proto_tree* proto_item_get_subtree(const proto_item *ti); +WS_DLL_PUBLIC proto_tree* proto_item_get_subtree(proto_item *ti); /** Get the parent of a subtree item. @param ti the child item in the subtree @@ -754,7 +754,7 @@ proto_tree_prime_hfid(proto_tree *tree, const int hfid); /** Get a parent item of a subtree. @param tree the tree to get the parent from @return parent item */ -WS_DLL_PUBLIC proto_item* proto_tree_get_parent(const proto_tree *tree); +WS_DLL_PUBLIC proto_item* proto_tree_get_parent(proto_tree *tree); /** Get the root tree from any subtree. @param tree the tree to get the root from @@ -901,7 +901,7 @@ proto_tree_add_bytes_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint s @return the newly created item */ WS_DLL_PUBLIC proto_item * proto_tree_add_time(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, - gint length, nstime_t* value_ptr); + gint length, const nstime_t* value_ptr); /** Add a formatted FT_ABSOLUTE_TIME or FT_RELATIVE_TIME to a proto_tree, with the format generating the string for the value and with the field name |