libipp: Fix C++23 build errors

No behavior change.
Switch up the order of declarations and define methods out-of-line to
prevent ~unique_ptr<T> from being instantiated before T is a complete
type.

BUG=chromium:388068055
TEST=Trivial refactor

Change-Id: I8cc0994d06f716951265bf058ddfa5357ed910c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/7030605
Commit-Queue: Victor Vianna <[email protected]>
Auto-Submit: Victor Vianna <[email protected]>
Reviewed-by: Aaron Massey <[email protected]>
Tested-by: Victor Vianna <[email protected]>
NOKEYCHECK=True
GitOrigin-RevId: fb0b45e964ca95dc784d3608e74d1b90413de5d1
1 file changed
tree: ac8a47fac188fd18c9655c214259daa3666b3d74
  1. docs/
  2. attribute.h
  3. attribute_test.cc
  4. binary_content.cc
  5. binary_content.h
  6. BUILD.gn
  7. builder.cc
  8. builder.h
  9. builder_test.cc
  10. colls_view.cc
  11. colls_view.h
  12. colls_view_test.cc
  13. CPPLINT.cfg
  14. DIR_METADATA
  15. errors.cc
  16. errors.h
  17. errors_test.cc
  18. frame.cc
  19. frame.h
  20. frame_test.cc
  21. ipp_attribute.cc
  22. ipp_attribute.h
  23. ipp_attribute_test.cc
  24. ipp_encoding.h
  25. ipp_encoding_test.cc
  26. ipp_enums.cc
  27. ipp_enums.h
  28. ipp_enums_test.cc
  29. ipp_export.h
  30. ipp_frame.h
  31. ipp_fuzzer.cc
  32. ipp_parser.cc
  33. ipp_parser.h
  34. ipp_test.cc
  35. libipp.pc
  36. OWNERS
  37. parser.cc
  38. parser.h
  39. parser_test.cc
  40. README.md
  41. validator.cc
  42. validator.h
  43. validator_test.cc
README.md

libipp

What is this?

General C++ library for building and parsing IPP frames. IPP stands for Internet Printing Protocol and is defined in several documents. This implementation is based mainly on the following sources:

How to use it?

All required C++ classes, types and functions are declared in ipp namespace.

IPP frames are sent/received as a payload of HTTP POST requests/responses. This library helps to build and parse raw IPP frames, but does not support the HTTP protocol. You have to use some other library to process HTTP packages, like libbrillo or libcurl. You can also dump a raw IPP frame to a file and send it from the command line with curl, e.g.:

curl -X POST "http://my.server:631/mypath" --header "Content-Type: application/ipp" --data-binary @ipp.frame

Then obtained response can be read from the file and parsed by libipp.

Documentation conventions

In this documentation, the following typographical conventions are used:

  • boldface denotes entities defined in the IPP specifications (see the links mentioned above);
  • italics indicates a name of a library or a (shell) command;
  • monospace is used to mark entities from the source code.

Link to documentation