rpmns.h
Go to the documentation of this file.
#ifndef H_RPMNS
#define H_RPMNS
/*@-exportlocal@*/
/*@unchecked@*/
extern int _rpmns_debug;
/*@=exportlocal@*/
/*@unchecked@*/ /*@observer@*/ /*@relnull@*/
extern const char *_rpmns_N_at_A;
typedef /*@abstract@*/ struct rpmns_s * rpmns;
typedef enum nsType_e {
RPMNS_TYPE_UNKNOWN = 0,
RPMNS_TYPE_STRING = (1 << 0),
RPMNS_TYPE_PATH = (1 << 1),
RPMNS_TYPE_DSO = (1 << 2),
RPMNS_TYPE_FUNCTION = (1 << 3),
RPMNS_TYPE_ARCH = (1 << 4),
RPMNS_TYPE_VERSION = (1 << 5),
RPMNS_TYPE_COMPOUND = (1 << 6),
/* 7 unused */
RPMNS_TYPE_NAMESPACE= (1 << 8),
RPMNS_TYPE_RPMLIB = (1 << 9),
RPMNS_TYPE_CPUINFO = (1 << 10),
RPMNS_TYPE_GETCONF = (1 << 11),
RPMNS_TYPE_UNAME = (1 << 12),
RPMNS_TYPE_SONAME = (1 << 13),
RPMNS_TYPE_ACCESS = (1 << 14),
RPMNS_TYPE_TAG = (1 << 15),
RPMNS_TYPE_USER = (1 << 16),
RPMNS_TYPE_GROUP = (1 << 17),
RPMNS_TYPE_MOUNTED = (1 << 18),
RPMNS_TYPE_DISKSPACE= (1 << 19),
RPMNS_TYPE_DIGEST = (1 << 20),
RPMNS_TYPE_GNUPG = (1 << 21),
RPMNS_TYPE_MACRO = (1 << 22),
RPMNS_TYPE_ENVVAR = (1 << 23),
RPMNS_TYPE_RUNNING = (1 << 24),
RPMNS_TYPE_SANITY = (1 << 25),
RPMNS_TYPE_VCHECK = (1 << 26),
RPMNS_TYPE_SIGNATURE= (1 << 27),
RPMNS_TYPE_VERIFY = (1 << 28),
RPMNS_TYPE_CONFIG = (1 << 29),
} nsType;
#if defined(_RPMNS_INTERNAL)
struct rpmns_s {
/*@owned@*/
const char * str;
nsType Type;
/*@dependent@*/ /*@null@*/
const char * NS;
/*@dependent@*/ /*@relnull@*/
const char * N;
/*@dependent@*/ /*@null@*/
const char * A;
evrFlags Flags;
};
#endif /* _RPMNS_INTERNAL */
#ifdef __cplusplus
extern "C" {
#endif
nsType rpmnsArch(const char * str)
/*@*/;
nsType rpmnsProbe(const char * str)
/*@*/;
nsType rpmnsClassify(const char * str)
/*@*/;
int rpmnsParse(const char * str, rpmns ns)
/*@globals rpmGlobalMacroContext, h_errno, internalState @*/
/*@modifies ns, rpmGlobalMacroContext, internalState @*/;
void rpmnsClean(void)
/*@globals internalState @*/
/*@modifies internalState @*/;
rpmRC rpmnsProbeSignature(void * _ts, const char * fn,
/*@null@*/ const char * sigfn,
/*@null@*/ const char * pubfn,
/*@null@*/ const char * pubid,
int flags)
/*@globals rpmGlobalMacroContext, h_errno, fileSystem, internalState @*/
/*@modifies _ts, rpmGlobalMacroContext, fileSystem, internalState @*/;
#ifdef __cplusplus
}
#endif
#endif /* H_RPMNS */