#ifndef _H_RPMLEAD #define _H_RPMLEAD #define RPMLEAD_BINARY 0 #define RPMLEAD_SOURCE 1 #define RPMLEAD_MAGIC0 0xed #define RPMLEAD_MAGIC1 0xab #define RPMLEAD_MAGIC2 0xee #define RPMLEAD_MAGIC3 0xdb #define RPMLEAD_SIZE 96 struct rpmlead { unsigned char magic[4]; unsigned char major, minor; short type; short archnum; char name[66]; short osnum; short signature_type; char reserved[16]; /* pads to 96 bytes -- 8 byte aligned! */ } ; struct oldrpmlead { /* for version 1 packages */ unsigned char magic[4]; unsigned char major, minor; short type; short archnum; char name[66]; unsigned int specOffset; unsigned int specLength; unsigned int archiveOffset; } ; int writeLead(int fd, struct rpmlead *lead); int readLead(int fd, struct rpmlead *lead); #endif