|
|
2ff057 |
#ifndef H_MISC
|
|
|
2ff057 |
#define H_MISC
|
|
|
2ff057 |
|
|
|
2ff057 |
/**
|
|
|
2ff057 |
* \file lib/misc.h
|
|
|
2ff057 |
*
|
|
|
2ff057 |
*/
|
|
|
2ff057 |
|
|
|
2ff057 |
#include <string.h>
|
|
|
2ff057 |
#include <rpm/rpmtypes.h>
|
|
|
2ff057 |
#include <rpm/header.h> /* for headerGetFlags typedef, duh.. */
|
|
|
2ff057 |
#include "lib/rpmfs.h"
|
|
|
2ff057 |
|
|
|
2ff057 |
typedef const struct headerFmt_s * headerFmt;
|
|
|
2ff057 |
|
|
|
2ff057 |
#ifdef __cplusplus
|
|
|
2ff057 |
extern "C" {
|
|
|
2ff057 |
#endif
|
|
|
2ff057 |
|
|
|
2ff057 |
/* known arch? */
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
int rpmIsKnownArch(const char *name);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
char * rpmVerifyString(uint32_t verifyResult, const char *pad);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
char * rpmFFlagsString(uint32_t fflags, const char *pad);
|
|
|
2ff057 |
|
|
|
2ff057 |
typedef int (*headerTagTagFunction) (Header h, rpmtd td, headerGetFlags hgflags);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
headerTagTagFunction rpmHeaderTagFunc(rpmTagVal tag);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
headerFmt rpmHeaderFormatByName(const char *fmt);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
headerFmt rpmHeaderFormatByValue(rpmtdFormats fmt);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
char * rpmHeaderFormatCall(headerFmt fmt, rpmtd td);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
int headerFindSpec(Header h);
|
|
|
2ff057 |
|
|
|
2ff057 |
/**
|
|
|
2ff057 |
* Relocate files in header.
|
|
|
2ff057 |
* @todo multilib file dispositions need to be checked.
|
|
|
2ff057 |
* @param relocs relocations
|
|
|
2ff057 |
* @param numRelocations number of relocations
|
|
|
2ff057 |
* @param fs file state set
|
|
|
2ff057 |
* @param h package header to relocate
|
|
|
2ff057 |
*/
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
void rpmRelocateFileList(rpmRelocation *relocs, int numRelocations, rpmfs fs, Header h);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
int rpmRelocateSrpmFileList(Header h, const char *rootDir);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
void rpmRelocationBuild(Header h, rpmRelocation *rawrelocs,
|
|
|
2ff057 |
int *rnrelocs, rpmRelocation **rrelocs, uint8_t **rbadrelocs);
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_INTERNAL
|
|
|
2ff057 |
void rpmAtExit(void);
|
|
|
2ff057 |
#ifdef __cplusplus
|
|
|
2ff057 |
}
|
|
|
2ff057 |
#endif
|
|
|
2ff057 |
|
|
|
2ff057 |
#endif /* H_MISC */
|