csomh / source-git / rpm

Forked from source-git/rpm 4 years ago
Clone
2ff057
#ifndef H_MANIFEST
2ff057
#define H_MANIFEST
2ff057
2ff057
/**
2ff057
 * \file lib/manifest.h
2ff057
 * Routines to expand a manifest containing glob expressions into an argv list.
2ff057
 */
2ff057
2ff057
#ifdef __cplusplus
2ff057
extern "C" {
2ff057
#endif
2ff057
2ff057
/**
2ff057
 * Return ls(1)-like formatted mode string.
2ff057
 * @param mode		file mode
2ff057
 * @return		(malloc'd) formatted mode string
2ff057
 */
2ff057
char * rpmPermsString(int mode)	
2ff057
;
2ff057
2ff057
/**
2ff057
 * Read manifest, glob items, and append to existing args.
2ff057
 * @param fd		manifest file handle
2ff057
 * @retval argcPtr	no. of args
2ff057
 * @retval argvPtr	args themselves
2ff057
 * @return		RPMRC_OK on success
2ff057
 */
2ff057
rpmRC rpmReadPackageManifest(FD_t fd, int * argcPtr, char *** argvPtr);
2ff057
2ff057
#ifdef __cplusplus
2ff057
}
2ff057
#endif
2ff057
2ff057
#endif	/* H_MANIFEST */