2001-04-10 20:36:45 +08:00
|
|
|
#ifndef H_MANIFEST
|
|
|
|
#define H_MANIFEST
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file lib/manifest.h
|
|
|
|
* Routines to expand a manifest containing glob expressions into an argv list.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return ls(1)-like formatted mode string.
|
|
|
|
* @param mode file mode
|
|
|
|
* @return (malloc'd) formatted mode string
|
|
|
|
*/
|
2001-06-04 21:55:58 +08:00
|
|
|
char * rpmPermsString(int mode)
|
2007-09-12 01:07:39 +08:00
|
|
|
;
|
2001-04-10 20:36:45 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Read manifest, glob items, and append to existing args.
|
2004-10-18 09:08:56 +08:00
|
|
|
* @param fd manifest file handle
|
|
|
|
* @retval argcPtr no. of args
|
|
|
|
* @retval argvPtr args themselves
|
|
|
|
* @return RPMRC_OK on success
|
2001-04-10 20:36:45 +08:00
|
|
|
*/
|
2007-12-18 18:53:57 +08:00
|
|
|
rpmRC rpmReadPackageManifest(FD_t fd, int * argcPtr, char *** argvPtr);
|
2001-04-10 20:36:45 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* H_MANIFEST */
|