diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-08-23 06:36:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-08-23 06:36:46 +0000 |
commit | 555652a37f17cccc4caa779470fcabeb286a750d (patch) | |
tree | 18703fada771039d686ae62ff720bf65a67952a8 /packet-h261.c | |
parent | 22b60d9812bc2151a3969753c3aa3b44f830d10a (diff) |
Add a dissector table for RTP payload types, and have dissectors
register themselves in that table rather than exporting their dissectors
by name and having the RTP dissector know about particular dissectors
for particular payload types.
svn path=/trunk/; revision=8215
Diffstat (limited to 'packet-h261.c')
-rw-r--r-- | packet-h261.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packet-h261.c b/packet-h261.c index 3b8840b23e..c9f6679564 100644 --- a/packet-h261.c +++ b/packet-h261.c @@ -2,7 +2,7 @@ * * Routines for ITU-T Recommendation H.261 dissection * - * $Id: packet-h261.c,v 1.18 2003/01/03 20:42:43 sahlberg Exp $ + * $Id: packet-h261.c,v 1.19 2003/08/23 06:36:46 guy Exp $ * * Copyright 2000, Philips Electronics N.V. * Andreas Sikkema <andreas.sikkema@philips.com> @@ -29,8 +29,6 @@ /* * This dissector tries to dissect the H.261 protocol according to Annex C * of ITU-T Recommendation H.225.0 (02/98) - * - * This dissector is called by the RTP dissector */ @@ -44,6 +42,8 @@ #include <stdio.h> #include <string.h> +#include "rtp_pt.h" + /* H.261 header fields */ static int proto_h261 = -1; static int hf_h261_sbit = -1; @@ -251,6 +251,13 @@ proto_register_h261(void) "H.261", "h261"); proto_register_field_array(proto_h261, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); +} + +void +proto_reg_handoff_h261(void) +{ + dissector_handle_t h261_handle; - register_dissector("h261", dissect_h261, proto_h261); + h261_handle = create_dissector_handle(dissect_h261, proto_h261); + dissector_add("rtp.pt", PT_H261, h261_handle); } |