可用于构建和解析 IPP(互联网打印协议)帧,适用于处理打印相关网络通信。核心功能包括生成原始 IPP 帧、解析 IPP 响应,基于 RFC 8010、RFC 8011 及 CUPS 实现,需配合 HTTP 库使用。【此简介由AI生成】
| Files | Last commit | Last update |
|---|---|---|
libipp: Update documentation about Frame class Update documentation about Frame class and related classes Collection and Attribute. BUG=b:193540670 TEST=none Change-Id: Ia8c71fe652a3d70056640123148b64434e609412 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4393108 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Auto-Submit: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: ad218c5be35c3de82cff909e1684659140b5ffa8 | 3 years ago | |
libipp: Add missing unit tests for the builder Add unit tests that validate building frames with attributes of types dateTime, resolution and rangeOfIntegers. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Id004331072a9cd2df16ca47314dd2627712b171b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4385730 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 605b4bcd951bf008b3a66dc2300a50e34283b36d | 3 years ago | |
libipp: remove nolint pragmas on project headers With the recent change to move a build/include check to build/include_directory, these NOLINT pragmas don't filter the correct check. Remove them, and add a CPPLINT.cfg to filter the "build/include_directory" check instead. BUG=None TEST=unit tests TEST=cros lint *.{cc,h} Change-Id: I87074890d149f0f3a7279b7c10220c6656f98345 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2168119 Tested-by: Fletcher Woodruff <fletcherw@chromium.org> Reviewed-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Fletcher Woodruff <fletcherw@chromium.org> Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2 Cr-Mirrored-Commit: f0139593eadce0f6cf66dabc0aa4a0b6bdc301d5 | 6 years ago | |
Add missing metadata for printing projects This points to our bug components and our dedicated CQ test suite. BUG=b:271011193, b:234625517 TEST=CQ Change-Id: I8fca99f2c6443d81445f836d368a73f0cbbefd5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4543923 Reviewed-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Ram Chandrasekar <rchandrasekar@google.com> Tested-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: bbc6d3c9b447512eba2bb27c6ce91df10ccc5496 | 3 years ago | |
Update print and scan OWNERS For every directory that has a DIR_METADATA file pointing to the Paper I/O team, point the matching OWNERS file to our shared OWNERS file. This updates several projects that were previously using cups_proxy as a shared list and cleans up the (mostly outdated) lists of individual OWNERS. The subdirectories of system_api are left as-is because they point to the code they're logically part of instead of the shared file. BUG=b:234625517 TEST=CQ Change-Id: I1d8484f11bec076d26645b1c329932b18580f1a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4562826 Reviewed-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Benjamin Gordon <bmgordon@chromium.org> Tested-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 170bb39febb630bd6797b61e500f708fce8413c4 | 3 years ago | |
libipp: Documentation for the library This is the first version of the documentation. BUG=b:193540670 TEST=none Change-Id: If1908aee6dfb891539959612aef5c517ef2809dc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4283446 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: a847780d1bbf8cd322d1a3c8beec2c39744e584e | 3 years ago | |
Update license boilerplate text in source code files Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BUG=chromium:1098010 TEST= repo upload works Change-Id: I099e56439df5ee9347df3bd5bca6fd1250d324b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/3889672 Owners-Override: Mike Frysinger <vapier@chromium.org> Reviewed-by: Cindy Lin <xcl@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Byron Lee <byronlee@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 3a446f27a00fba076a5a42d383ae6134c333ee57 | 4 years ago | |
libipp: Add silent conversions for GetValue/s() Extend methods GetValue() and GetValues() with silent conversions between types that are sometimes substituted in IPP frames. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I71f806396ba198243a99bf5cb4e9525494ab546c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4346028 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Benjamin Gordon <bmgordon@chromium.org> Auto-Submit: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 647555b6764fb686e835e5ea86b9feb01015a4b3 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Add missing unit tests for the parser Add unit tests that validate parsing attributes of types dateTime, resolution and rangeOfIntegers. Also, move the struct BinaryContent to separate file. It is now used in both parser_test.cc and ipp_test.cc. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I51567966ef0ab244009f105ed19cef804990c4b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4382222 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: a5ab5d4de4c1a1c37ab10dada46cfc969b09db08 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Rename #define IPP_* to LIBIPP_* Rename IPP_EXPORT to LIBIPP_EXPORT and IPP_PRIVATE to LIBIPP_PRIVATE. The reason is to avoid conflict with #define directives in CUPS that starts with IPP_ prefix. BUG=b:259960293 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ica07ea421a6d46b6ac0a2a8743ea23fe391a17ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4297769 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 628564b87eefeb2ef55b7a1952a3010bf54097bd | 3 years ago | |
libipp: Add missing unit tests for the builder Add unit tests that validate building frames with attributes of types dateTime, resolution and rangeOfIntegers. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Id004331072a9cd2df16ca47314dd2627712b171b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4385730 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 605b4bcd951bf008b3a66dc2300a50e34283b36d | 3 years ago | |
libipp: Rename CollectionsView to CollsView Rename CollectionsView to CollsView and ConstCollectionsView to ConstCollsView. The only reason for this is to make these names shorter. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Id132d267667e2903b7684c201a0036ab633c21a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4317582 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e9688286d26334bc4578e19eda0600dd3673f95c | 3 years ago | |
libipp: Rename CollectionsView to CollsView Rename CollectionsView to CollsView and ConstCollectionsView to ConstCollsView. The only reason for this is to make these names shorter. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Id132d267667e2903b7684c201a0036ab633c21a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4317582 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e9688286d26334bc4578e19eda0600dd3673f95c | 3 years ago | |
libipp: Remove deprecated methods from Collection Remove all deprecated methods from Collection class. BUG=b:249157310 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ide57e8f7ad8789cae0e42d24c1506d440b570d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4327766 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 40a542a02065d837bd00d8885d6278e5a47615e9 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Move code from errors.* to validator.* Move from errors.* to validator.* and rename the following entities: * ValidationCode -> ValidatorCode * ErrorsLog -> ValidatorLog * SimpleLog -> SimpleValidatorLog. All of them are used only by validator.h. New names are consistent with these in parser.h. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I7da3d5fb39a4633a4805757e9ba3b475d9d68bc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4316029 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: d7f99c332af03013673c53b987117715c749da87 | 3 years ago | |
libipp: Add function for validation All functionality related to basic validation of values extracted from a parsed frame was copied to separate function ipp::Validate(). This function browses all groups in the frame and runs some basic validation tests on all included attributes' names and values. Detected errors are reporter via ErrorsLog interface to the caller. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I3e2352be5f9e6895b0ee5823077ddbf1b507e166 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4072069 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 5bda61d7943d849098f68c32440dce22d9ab8321 | 3 years ago | |
libipp: Remove deprecated methods from Frame class Remove all deprecated methods from Frame class. BUG=b:249157310 TEST=FEATURES=test emerge-amd64-generic libipp Cq-Depend: 4328168 Change-Id: I54227d22de6af0c6dae89d956d376a2461c74ed8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4327765 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: a636750aba346943ec4cbbd8aa94534b5747bb47 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Refactor methods Attribute::GetValue(...) Replace deprecated methods bool GetValue(T*, index) with Code GetValue(index, T&). BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I444f451234f70fe62ef6c7c18be523ba3e96f33d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4330169 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 4a69fc82c33735afc33df113395b62e3f4ad9ac5 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Update documentation about Frame class Update documentation about Frame class and related classes Collection and Attribute. BUG=b:193540670 TEST=none Change-Id: Ia8c71fe652a3d70056640123148b64434e609412 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4393108 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Auto-Submit: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: ad218c5be35c3de82cff909e1684659140b5ffa8 | 3 years ago | |
libipp: Refactor methods Attribute::GetValue(...) Replace deprecated methods bool GetValue(T*, index) with Code GetValue(index, T&). BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I444f451234f70fe62ef6c7c18be523ba3e96f33d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4330169 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 4a69fc82c33735afc33df113395b62e3f4ad9ac5 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Remove duplicate verification Remove validation of values during building the frame. All removed checkings are already implemented in the Frame class or in the validator. BUG=b:216051238,b:266139120 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I6866d7caba1cf15a2e789423ce544e769d63607a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4270293 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 70f8c72f4f8024181fa616d2207453af972e010c | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Rename #define IPP_* to LIBIPP_* Rename IPP_EXPORT to LIBIPP_EXPORT and IPP_PRIVATE to LIBIPP_PRIVATE. The reason is to avoid conflict with #define directives in CUPS that starts with IPP_ prefix. BUG=b:259960293 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ica07ea421a6d46b6ac0a2a8743ea23fe391a17ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4297769 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 628564b87eefeb2ef55b7a1952a3010bf54097bd | 3 years ago | |
libipp: Improve unit tests coverage for ipp_enums Add unit tests checking conversion between string and number for two values from each enum. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I32d42a87ddb0a0f70583574ad3fcabf4ca7b3146 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4117758 Reviewed-by: Mason Wilde <masonwilde@google.com> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: f0f29b357972e25206a9f528474382925717a727 | 3 years ago | |
libipp: Rename #define IPP_* to LIBIPP_* Rename IPP_EXPORT to LIBIPP_EXPORT and IPP_PRIVATE to LIBIPP_PRIVATE. The reason is to avoid conflict with #define directives in CUPS that starts with IPP_ prefix. BUG=b:259960293 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ica07ea421a6d46b6ac0a2a8743ea23fe391a17ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4297769 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 628564b87eefeb2ef55b7a1952a3010bf54097bd | 3 years ago | |
libipp: New ParserCode values Add two new values to the enum ParserCode. Also, add an optional second parameter to the LogParserError(ParserCode) method and remove some duplicate checks in the parser code. BUG=b:216051238 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ia35bceff4d4e72a64120790d442a1961773289df Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4183442 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: a972970d9991248871e2e56b7502b31e76171d48 | 3 years ago | |
libipp: Remove method Attribute::GetCollection() Remove deprecated method from Attribute. BUG=b:249157310 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I2bde19d40cc39a639efe0ef4d1bf62e40ea69c30 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4330167 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 9999b803261b3c935dbfbf36409b168f21c300d1 | 3 years ago | |
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 <victorvianna@google.com> Auto-Submit: Victor Vianna <victorvianna@google.com> Reviewed-by: Aaron Massey <aaronmassey@google.com> Tested-by: Victor Vianna <victorvianna@google.com> NOKEYCHECK=True GitOrigin-RevId: fb0b45e964ca95dc784d3608e74d1b90413de5d1 | 1 year ago | |
libipp: Remove unused code from the parser Remove unused code from the parser. Also, add to ParserError a field with the position in the input buffer where the error occurred. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ie5b7fb87a3a31b2507906ba2411be84cc607a72d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4372558 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 31d9e8d1e449f48ed78b59c1cf8fa0cde5af30e2 | 3 years ago | |
libipp: Add missing unit tests for the parser Add unit tests that validate parsing attributes of types dateTime, resolution and rangeOfIntegers. Also, move the struct BinaryContent to separate file. It is now used in both parser_test.cc and ipp_test.cc. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I51567966ef0ab244009f105ed19cef804990c4b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4382222 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: a5ab5d4de4c1a1c37ab10dada46cfc969b09db08 | 3 years ago | |
libipp: pkg-config configuration file (pc file) This patch add libipp.pc file to the library. BUG=chromium:901454,chromium:896778,chromium:902085 TEST=none Change-Id: I8fffdc14fa9f7b91229e48c6e0b020009c71ba42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1735996 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Sean Kau <skau@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Auto-Submit: Piotr Pawliczek <pawliczek@chromium.org> Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2 Cr-Mirrored-Commit: 7051db14682b45d6c1cb6ae839bdeaa40be8b746 | 7 years ago | |
libipp: Remove ParserCode:kOK Remove the value kOK from enum ParserCode. This value never were reported by the parser so there is no reasons for keeping it exposed in the API. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I0f723ce3adf2f184bd84265409d5b9dcd874ab58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4372349 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 8cd4d37ee8c901f78edfe9c87c3ce4299b53a152 | 3 years ago | |
libipp: Remove ParserCode:kOK Remove the value kOK from enum ParserCode. This value never were reported by the parser so there is no reasons for keeping it exposed in the API. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I0f723ce3adf2f184bd84265409d5b9dcd874ab58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4372349 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 8cd4d37ee8c901f78edfe9c87c3ce4299b53a152 | 3 years ago | |
libipp: Add missing unit tests for the parser Add unit tests that validate parsing attributes of types dateTime, resolution and rangeOfIntegers. Also, move the struct BinaryContent to separate file. It is now used in both parser_test.cc and ipp_test.cc. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I51567966ef0ab244009f105ed19cef804990c4b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4382222 Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: a5ab5d4de4c1a1c37ab10dada46cfc969b09db08 | 3 years ago | |
libipp: IncludeBraces LSC This removes the IncludeBraces workaround from .clang-tidy in this project, and runs cros format to bring files in line with Chromium's new style. For more information on this LSC, see go/cros-insert-braces-lsc. To reproduce _just_ this CL, inside of the chroot, run: $ ${toolchain_utils}/py/bin/llvm_tools/insert_braces.py \ --start-project=libipp \ -n 1 \ --platform2-commit=d0f72ba10e3ba8d5068bb6e3460f9fa9b4f693ac To reproduce the stack this was a part of, you can run the same command, but with --start-project set to libhwsec and -n set to 5. BUG=b:370478040 TEST=CQ Change-Id: Ibec03e1cce371e47bd73740d4c348211e33df4de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5995095 Owners-Override: Hidehiko Abe <hidehiko@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> NOKEYCHECK=True GitOrigin-RevId: e222d10ff611210ced8a5ee4e67872cc31500a22 | 1 year ago | |
libipp: Add missing export directives Add missing export directives to ToString() and ToStrView() functions in parser.h and validator.h. BUG=none TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: I1324752e2f45baef75b7d4f380496699a67d1c73 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4324558 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: ebc6f800c07d9299467de24ca9e6158c6af70758 | 3 years ago | |
libipp: Remove deprecated methods from Collection Remove all deprecated methods from Collection class. BUG=b:249157310 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Ide57e8f7ad8789cae0e42d24c1506d440b570d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4327766 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 40a542a02065d837bd00d8885d6278e5a47615e9 | 3 years ago |
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;
monospaceis used to mark entities from the source code.
Link to documentation
Introduction
可用于构建和解析 IPP(互联网打印协议)帧,适用于处理打印相关网络通信。核心功能包括生成原始 IPP 帧、解析 IPP 响应,基于 RFC 8010、RFC 8011 及 CUPS 实现,需配合 HTTP 库使用。【此简介由AI生成】
Customize your domain