summaryrefslogtreecommitdiff
path: root/lib/header.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-01-05 11:18:46 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-05 11:18:46 +0200
commit122e2d204e0bdcf081bf1bd05f410a6040a110bf (patch)
tree8172ee2f81bbd6e720625a727090bdc5ada06d18 /lib/header.h
parentb0a4ff421bec790eaa3c16684e7ffcc49ac92314 (diff)
downloadrpm-122e2d204e0bdcf081bf1bd05f410a6040a110bf.tar.gz
rpm-122e2d204e0bdcf081bf1bd05f410a6040a110bf.tar.bz2
rpm-122e2d204e0bdcf081bf1bd05f410a6040a110bf.zip
Eliminate header magic duplication all over the place, export it
- avoid several copies of the same thing... - there are valid reasons for wanting to know header magic outside librpm, export it as rpm_header_magic
Diffstat (limited to 'lib/header.h')
-rw-r--r--lib/header.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/header.h b/lib/header.h
index aa93e2291..4f06c8f5f 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -21,6 +21,11 @@
extern "C" {
#endif
+/** \ingroup header
+ * Header magic value
+ */
+extern const unsigned char rpm_header_magic[8];
+
/** \ingroup header
* Include calculation for 8 bytes of (magic, 0)?
*/