aboutsummaryrefslogtreecommitdiffstats
path: root/doc/README.developer
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-07-03 09:26:19 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-07-03 09:26:19 +0000
commitcc1a6ebfa62e015c544ce360ac571fcbe24c2f18 (patch)
tree47489329e65ef37187b3c964d902d86c6de9b987 /doc/README.developer
parent3e2659699e51fe4547d8e811297c9cebacc13369 (diff)
Update the ptvcursors chapter.
svn path=/trunk/; revision=18639
Diffstat (limited to 'doc/README.developer')
-rw-r--r--doc/README.developer30
1 files changed, 20 insertions, 10 deletions
diff --git a/doc/README.developer b/doc/README.developer
index 9a6b87c7e0..1712995f13 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -1918,7 +1918,7 @@ The final implication of this is that display filters work the way you'd
naturally expect them to. You'd type "sna.th.fid == 0xf" to find Adjacent
Subarea Nodes. The user does not have to shift the value of the FID to
the high nibble of the byte ("sna.th.fid == 0xf0") as was necessary
-before Wireshark 0.7.6.
+in the past.
proto_tree_add_item_hidden()
----------------------------
@@ -3161,17 +3161,16 @@ The three steps for a simple protocol are:
2. Add fields with multiple calls of ptvcursor_add()
3. Delete the ptvcursor with ptvcursor_free()
-To use the ptvcursor API, include the "ptvcursor.h" file. The NCP dissector
-is an overly-complicated example of how to use it. I don't recommend
-looking at it as a guide; instead, the API description here should be good
-enough.
+To use the ptvcursor API, include the "ptvcursor.h" file. The PGM dissector
+is an example of how to use it. You don't need to look at it as a guide;
+instead, the API description here should be good enough.
2.8.1 API
ptvcursor_t*
ptvcursor_new(proto_tree*, tvbuff_t*, gint offset)
This creates a new ptvcursor_t object for iterating over a tvbuff.
-You must call this and use this ptvbcursor_t object so you can use the
+You must call this and use this ptvcursor_t object so you can use the
ptvcursor API.
proto_item*
@@ -3197,11 +3196,22 @@ ptvcursor_free(ptvcursor_t*)
after your dissection with the ptvcursor API is completed.
2.8.2 Miscellaneous functions
- ptvcursor_tvbuff - returns the tvbuff associated with the ptvcursor
- ptvcursor_current_offset - returns the current offset
- ptvcursor_tree - returns the proto_tree associated with the ptvcursor
- ptvcursor_set_tree - sets a new proto_tree for the ptvcursor
+tvbuff_t*
+ptvcursor_tvbuff(ptvcursor_t*)
+ returns the tvbuff associated with the ptvcursor
+
+gint
+ptvcursor_current_offset(ptvcursor_t*)
+ returns the current offset
+
+proto_tree*
+ptvcursor_tree(ptvcursor_t*)
+ returns the proto_tree associated with the ptvcursor
+
+void
+ptvcursor_set_tree(ptvcursor_t*, proto_tree *)
+ sets a new proto_tree for the ptvcursor
3. Plugins