Erm, stuff headerIsSource() implementation to hdrNVR with other cruft
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 1 Dec 2007 19:01:51 +0000 (21:01 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 1 Dec 2007 19:01:51 +0000 (21:01 +0200)
- avoid dragging rpmlib for RPMTAG_* into header.h

rpmdb/hdrNVR.c
rpmdb/header.h

index 2e93625..4d5d569 100644 (file)
@@ -104,3 +104,8 @@ uint32_t headerGetColor(Header h)
     return hcolor;
 }
 
+int headerIsSource(Header h)
+{
+    return (!headerIsEntry(h, RPMTAG_SOURCERPM));
+}
+
index c5e4e7c..c063093 100644 (file)
@@ -658,10 +658,8 @@ uint32_t headerGetColor(Header h);
  * @param h            header
  * @return             0 == binary, 1 == source
  */
-int headerIsSource(Header h)
-{
-    return (!headerIsEntry(h, RPMTAG_SOURCERPM));
-}
+int headerIsSource(Header h);
+
 #ifdef __cplusplus
 }
 #endif