1 /* vi: set sw=4 ts=4: */
3 * RPM structs and consts
5 * Copyright (C) 2001 by Laurence Anderson
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
10 /* RPM file starts with this struct: */
18 uint16_t signature_type;
22 char bug[sizeof(struct rpm_lead) == 96 ? 1 : -1];
24 #define RPM_LEAD_MAGIC 0xedabeedb
25 #define RPM_LEAD_MAGIC_STR "\355\253\356\333"
27 /* Then follows the header: */
29 uint32_t magic_and_ver; /* 3 byte magic: 0x8e 0xad 0xe8; 1 byte version: 0x01 */
30 uint32_t reserved; /* 4 bytes reserved */
31 uint32_t entries; /* Number of entries in header (4 bytes) */
32 uint32_t size; /* Size of store (4 bytes) */
34 struct BUG_rpm_header {
35 char bug[sizeof(struct rpm_header) == 16 ? 1 : -1];
37 #define RPM_HEADER_MAGICnVER 0x8eade801
38 #define RPM_HEADER_MAGIC_STR "\216\255\350"