patty/include/patty/print.h
XANTRONIX Development 1fbf09c9ba Refactor parameter decoding/display
Changes:

    * Implement patty_ax25_params struct to contain all parameters
      supported by patty, at the interface and socket level alike

    * Move parameter enumerate types into include/patty/ax25.h, from
      include/patty/ax25/frame.h; make corrections as necessary

    * Reimplement patty_ax25_frame_decode_xid() to parse known XID
      information parameters into a patty_ax25_params object

    * Implement patty_print_params() in src/print.c

    * Refactor patty_print_frame() as patty_print_frame_header(),
      without a call to patty_print_hexdump(); this allows
      patty_print_params() to be called prior to patty_print_hexdump(),
      for better readability

    * Use patty_print_params() in examples/ax25dump.c, decode.c

    * Refactor usage of patty_ax25_frame_decode_xid() in src/server.c to
      parse XID frames into a patty_ax25_params object
2024-03-01 00:20:46 -05:00

12 lines
327 B
C

#ifndef _PATTY_PRINT_H
#define _PATTY_PRINT_H
int patty_print_frame_header(FILE *fh,
const patty_ax25_frame *frame);
int patty_print_params(FILE *fh,
const patty_ax25_params *params);
int patty_print_hexdump(FILE *fh, void *data, size_t len);
#endif /* _PATTY_PRINT_H */