Clarify the previous checkin - that applies to the 'value' argument.

svn path=/trunk/; revision=8797
This commit is contained in:
Guy Harris 2003-10-28 05:50:52 +00:00
parent 5900986044
commit 3de139644b
1 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
$Id: README.developer,v 1.83 2003/10/28 05:49:29 guy Exp $ $Id: README.developer,v 1.84 2003/10/28 05:50:52 guy Exp $
This file is a HOWTO for Ethereal developers. It describes how to start coding This file is a HOWTO for Ethereal developers. It describes how to start coding
a Ethereal protocol dissector and the use some of the important functions and a Ethereal protocol dissector and the use some of the important functions and
@ -235,7 +235,7 @@ code inside
is needed only if you are using the "snprintf()" function. is needed only if you are using the "snprintf()" function.
The "$Id: README.developer,v 1.83 2003/10/28 05:49:29 guy Exp $" The "$Id: README.developer,v 1.84 2003/10/28 05:50:52 guy Exp $"
in the comment will be updated by CVS when the file is in the comment will be updated by CVS when the file is
checked in; it will allow the RCS "ident" command to report which checked in; it will allow the RCS "ident" command to report which
version of the file is currently checked out. version of the file is currently checked out.
@ -245,7 +245,7 @@ version of the file is currently checked out.
* Routines for PROTONAME dissection * Routines for PROTONAME dissection
* Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS> * Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS>
* *
* $Id: README.developer,v 1.83 2003/10/28 05:49:29 guy Exp $ * $Id: README.developer,v 1.84 2003/10/28 05:50:52 guy Exp $
* *
* Ethereal - Network traffic analyzer * Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com> * By Gerald Combs <gerald@ethereal.com>
@ -1375,10 +1375,11 @@ These routines are used to add items to the protocol tree if either:
The 'value' argument has the value to be added to the tree. The 'value' argument has the value to be added to the tree.
NOTE: in all cases where the argument is a pointer, a copy is made of NOTE: in all cases where the 'value' argument is a pointer, a copy is
the object pointed to; if you have dynamically allocated a buffer for made of the object pointed to; if you have dynamically allocated a
the object, that buffer will not be freed when the protocol tree is buffer for the object, that buffer will not be freed when the protocol
freed - you must free the buffer yourself when you don't need it any more. tree is freed - you must free the buffer yourself when you don't need it
any more.
For proto_tree_add_bytes(), the 'value_ptr' argument is a pointer to a For proto_tree_add_bytes(), the 'value_ptr' argument is a pointer to a
sequence of bytes. sequence of bytes.