rpmfileutil.h
Go to the documentation of this file.
#ifndef _RPMFILEUTIL_H
#define _RPMFILEUTIL_H
#include <rpm/rpmutil.h>
#include <rpm/rpmio.h>
#include <rpm/rpmpgp.h>
#include <rpm/argv.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum rpmCompressedMagic_e {
COMPRESSED_NOT = 0,
COMPRESSED_OTHER = 1,
COMPRESSED_BZIP2 = 2,
COMPRESSED_ZIP = 3,
COMPRESSED_LZMA = 4,
COMPRESSED_XZ = 5,
COMPRESSED_LZIP = 6,
COMPRESSED_LRZIP = 7,
COMPRESSED_7ZIP = 8
} rpmCompressedMagic;
int rpmDoDigest(int algo, const char * fn,int asAscii,
unsigned char * digest, rpm_loff_t * fsizep);
FD_t rpmMkTemp(char *templ);
FD_t rpmMkTempFile(const char * prefix, char **fn);
int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);
int rpmMkdirs(const char *root, const char *pathstr);
char * rpmCleanPath (char * path);
char * rpmGenPath (const char * urlroot,
const char * urlmdir,
const char * urlfile);
char * rpmGetPath (const char * path, ...) RPM_GNUC_NULL_TERMINATED;
int rpmIsGlob(const char * pattern, int quote);
int rpmGlob(const char * patterns, int * argcPtr, ARGV_t * argvPtr);
char * rpmEscapeSpaces(const char * s);
int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);
int rpmFileHasSuffix(const char *path, const char *suffix);
char * rpmGetCwd(void);
#ifdef __cplusplus
}
#endif
#endif /* _RPMFILEUTIL_H */