From cb13c4398609bb8e9d7a6750075d79d1662a26e1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 21 Sep 2010 13:02:53 +0300 Subject: [PATCH] Move RPMTAG_NOT_FOUND into rpmTag enumeration - Permits presenting "invalid tag" cleanly via the rpmTag enum type on function returns etc --- lib/rpmtag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmtag.h b/lib/rpmtag.h index 7fc6fbc..fd0a748 100644 --- a/lib/rpmtag.h +++ b/lib/rpmtag.h @@ -32,6 +32,7 @@ extern "C" { */ /** @todo: Somehow supply type **/ typedef enum rpmTag_e { + RPMTAG_NOT_FOUND = -1, /*!< Unknown tag */ RPMTAG_HEADERIMAGE = HEADER_IMAGE, /*!< Current image. */ RPMTAG_HEADERSIGNATURES = HEADER_SIGNATURES, /*!< Signatures. */ @@ -306,7 +307,6 @@ typedef enum rpmTag_e { } rpmTag; #define RPMTAG_EXTERNAL_TAG 1000000 -#define RPMTAG_NOT_FOUND -1 /** \ingroup signature * Tags found in signature header from package. -- 2.7.4