rpmmg.h
Go to the documentation of this file.
#ifndef H_RPMMG
#define H_RPMMG
/*@unchecked@*/
extern int _rpmmg_debug;
typedef /*@refcounted@*/ struct rpmmg_s * rpmmg;
#if defined(_RPMMG_INTERNAL)
struct rpmmg_s {
struct rpmioItem_s _item;
const char * fn;
int flags;
/*@relnull@*/
void * ms;
#if defined(__LCLINT__)
/*@refs@*/
int nrefs;
#endif
};
#endif /* _RPMMG_INTERNAL */
#ifdef __cplusplus
extern "C" {
#endif
/*@unused@*/ /*@null@*/
rpmmg rpmmgUnlink (/*@killref@*/ /*@only@*/ /*@null@*/ rpmmg mg)
/*@modifies mg @*/;
#define rpmmgUnlink(_ds) \
((rpmmg)rpmioUnlinkPoolItem((rpmioItem)(_mg), __FUNCTION__, __FILE__, __LINE__))
/*@unused@*/ /*@newref@*/ /*@null@*/
rpmmg rpmmgLink (/*@null@*/ rpmmg mg)
/*@modifies mg @*/;
#define rpmmgLink(_mg) \
((rpmmg)rpmioLinkPoolItem((rpmioItem)(_mg), __FUNCTION__, __FILE__, __LINE__))
/*@null@*/
rpmmg rpmmgFree(/*@killref@*/ /*@null@*/ rpmmg mg)
/*@globals fileSystem @*/
/*@modifies mg, fileSystem @*/;
#define rpmmgFree(_mg) \
((rpmmg)rpmioFreePoolItem((rpmioItem)(_mg), __FUNCTION__, __FILE__, __LINE__))
/*@newref@*/ /*@null@*/
rpmmg rpmmgNew(const char * fn, int flags)
/*@globals fileSystem, internalState @*/
/*@modifies fileSystem, internalState @*/;
/*@only@*/
const char * rpmmgFile(rpmmg mg, const char *fn)
/*@globals fileSystem, internalState @*/
/*@modifies mg, fileSystem, internalState @*/;
/*@only@*/
const char * rpmmgBuffer(rpmmg mg, const char * b, size_t nb)
/*@globals fileSystem, internalState @*/
/*@modifies mg, fileSystem, internalState @*/;
#ifdef __cplusplus
}
#endif
#endif /* H_RPMMG */