This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=8190e63fa0442c036092cf8eb1269733bedef498

commit 8190e63fa0442c036092cf8eb1269733bedef498
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Jan 30 03:04:07 2017 +0100

    libdpkg: Add new DPKG_ERROR_OBJECT macro
---
 debian/changelog | 1 +
 lib/dpkg/error.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e4c4d2cbe..71bf15826 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -117,6 +117,7 @@ dpkg (1.19.3) UNRELEASED; urgency=medium
     - libdpkg: Rename pkg_db symbols to pkg_hash.
     - libdpkg: Add new warning printer setter function.
       Prompted by Julian Andres Klode <[email protected]>.
+    - libdpkg: Add new DPKG_ERROR_OBJECT macro.
   * Build system:
     - get-version: Use a format string with printf.
     - run-script: Use $() instead of deprecated ``.
diff --git a/lib/dpkg/error.h b/lib/dpkg/error.h
index da06e028d..299a6235d 100644
--- a/lib/dpkg/error.h
+++ b/lib/dpkg/error.h
@@ -46,6 +46,8 @@ struct dpkg_error {
 
 #define DPKG_ERROR_INIT { DPKG_MSG_NONE, 0, NULL }
 
+#define DPKG_ERROR_OBJECT (struct dpkg_error)DPKG_ERROR_INIT
+
 int dpkg_put_warn(struct dpkg_error *err, const char *fmt, ...)
        DPKG_ATTR_PRINTF(2);
 int dpkg_put_error(struct dpkg_error *err, const char *fmt, ...)

-- 
Dpkg.Org's dpkg

Reply via email to