README.api 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. This is an (incomplete) list of currently provided APIs by dpkg, and
  2. their supported status.
  3. What: libdpkg.a (C static library)
  4. Status: volatile
  5. Description:
  6. The API provided by this library is highly volatile, still in the process
  7. of being cleaned up. It's only supposed to be used internally by dpkg for
  8. now. Header files, functions, variables and types might get renamed,
  9. removed or change semantics. If you still have a need to use it, which
  10. you'd be doing anyway, say by locally building dpkg to get the library,
  11. then define the C preprocessor macro LIBDPKG_VOLATILE_API in your build
  12. to acknowledge that fact.
  13. What: libdpkg-perl (perl modules)
  14. Status: stable
  15. Description:
  16. Among the perl modules provided by libdpkg-perl, you can safely rely on
  17. those that have $VERSION set to 1.00 (or higher). Note however that the
  18. API is defined by what's documented in the corresponding manual pages and
  19. nothing more. You can't assume anything else based on what you read in
  20. the source code. If you feel the need for further refinements in the
  21. documented API, don't hesitate to file a wishlist bug against
  22. libdpkg-perl.
  23. .
  24. In case of API-breaking changes, the major number in $VERSION will be
  25. increased. For API extensions, the minor number will be increased.
  26. What: custom changelog parsers as Dpkg::Changelog derived modules
  27. Status: stable
  28. Description:
  29. Since dpkg 1.18.8, custome changelog parsers are supported as modules
  30. derived from the Dpkg::Changelog module. The derived modules need to
  31. implement all required documented methods.