Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/plugins plugin_api_decls.h Makefile.am plugi

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 May 2002 19:16:37 -0500 (CDT)
guy         2002/05/04 19:16:37 CDT

  Modified files:
    plugins              Makefile.am plugin_api.c plugin_api.h 
                         plugin_api_defs.h plugin_table.h 
  Added files:
    plugins              plugin_api_decls.h 
  Log:
  Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
  extracting PDUs from it and possibly doing reassembly.  Make the COPS,
  DNS, DSI, Gryphon, and SCCP dissectors use it.
  
  Add "set_actual_length()", "tcp_dissect_pdus()",
  "decode_boolean_bitfield()", "decode_numeric_bitfield()", and
  "decode_enumerated_bitfield()" to the list of routines available to
  dissectors on platforms where routines in the main program aren't
  available to dynamically-loaded code.
  
  Declare routines in "to_str.h" as "extern"; as I remember, that's
  necessary to allow the "decode_XXX_bitfield()" routines declared therein
  to be made available to plugins as per the above.
  
  Note that new exported routines should be added to the end of the table
  if that's the only change being made to the table.
  
  Create a new "plugin_api_decls.h" header file, used to declare both the
  "p_" variables and the "p_" structure members in the routine-exporting
  mechanism; this reduces the number of places you have to change to
  change the list of exported routines.
  
  Revision  Changes    Path
  1.9       +2 -1      ethereal/plugins/Makefile.am
  1.38      +6 -8      ethereal/plugins/plugin_api.c
  1.39      +10 -8     ethereal/plugins/plugin_api.h
  1.14      +2 -169    ethereal/plugins/plugin_api_defs.h
  1.45      +14 -164   ethereal/plugins/plugin_table.h