diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:12:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:12:53 +0000 |
commit | d304535254ee7b9b21c5c26e9ae40afca29d1fe5 (patch) | |
tree | c446bd6bc36461e078a9c66d9c46dd48b57db568 /doc/README.developer | |
parent | bced8711f67b5dba76e9d6cdfd1a0246b235df27 (diff) |
Update the sample dissector handoff registration routine to match the
current calling sequence for "dissector_add()".
svn path=/trunk/; revision=4309
Diffstat (limited to 'doc/README.developer')
-rw-r--r-- | doc/README.developer | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/README.developer b/doc/README.developer index b3bbfbe006..504bae8565 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -1,4 +1,4 @@ -$Id: README.developer,v 1.41 2001/11/27 07:21:55 guy Exp $ +$Id: README.developer,v 1.42 2001/12/03 04:12:53 guy Exp $ 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 @@ -85,7 +85,7 @@ code inside is needed only if you are using the "snprintf()" function. -The "$Id: README.developer,v 1.41 2001/11/27 07:21:55 guy Exp $" +The "$Id: README.developer,v 1.42 2001/12/03 04:12:53 guy Exp $" in the comment will be updated by CVS when the file is checked in; it will allow the RCS "ident" command to report which version of the file is currently checked out. @@ -95,7 +95,7 @@ version of the file is currently checked out. * Routines for PROTONAME dissection * Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS> * - * $Id: README.developer,v 1.41 2001/11/27 07:21:55 guy Exp $ + * $Id: README.developer,v 1.42 2001/12/03 04:12:53 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -268,8 +268,11 @@ proto_register_PROTOABBREV(void) void proto_reg_handoff_PROTOABBREV(void) { - dissector_add("PARENT_SUBFIELD", ID_VALUE, dissect_PROTOABBREV, + dissector_handle_t PROTOABBREV_handle; + + PROTOABBREV_handle = create_dissector_handle(dissect_PROTOABBREV, proto_PROTOABBREV); + dissector_add("PARENT_SUBFIELD", ID_VALUE, PROTOABBREV_handle); } ------------------------------------Cut here------------------------------------ |