2001-02-11 00:47:40 +08:00
|
|
|
#ifndef H_FSM
|
|
|
|
#define H_FSM
|
|
|
|
|
2001-04-10 20:36:45 +08:00
|
|
|
/** \ingroup payload
|
2022-03-09 20:07:36 +08:00
|
|
|
* \file fsm.h
|
2001-04-10 20:36:45 +08:00
|
|
|
* File state machine to handle a payload within an rpm package.
|
2001-02-11 00:47:40 +08:00
|
|
|
*/
|
|
|
|
|
2007-12-08 20:02:32 +08:00
|
|
|
#include <rpm/rpmfi.h>
|
2001-02-11 00:47:40 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-03-30 20:56:33 +08:00
|
|
|
typedef struct rpmpsm_s * rpmpsm;
|
|
|
|
|
2001-02-11 00:47:40 +08:00
|
|
|
/**
|
2012-03-29 21:49:51 +08:00
|
|
|
* Execute a file actions for package
|
2001-02-11 00:47:40 +08:00
|
|
|
* @param ts transaction set
|
2015-02-17 22:29:59 +08:00
|
|
|
* @param te transaction set element
|
|
|
|
* @param files transaction element file info
|
2012-01-05 20:24:33 +08:00
|
|
|
* @param psm owner psm (or NULL)
|
2020-10-28 15:50:45 +08:00
|
|
|
* @param[out] failedFile pointer to first file name that failed (malloced)
|
2001-02-11 00:47:40 +08:00
|
|
|
* @return 0 on success
|
|
|
|
*/
|
|
|
|
|
2014-03-21 15:00:27 +08:00
|
|
|
int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files,
|
2012-03-29 21:44:40 +08:00
|
|
|
rpmpsm psm, char ** failedFile);
|
|
|
|
|
2013-11-14 15:55:59 +08:00
|
|
|
int rpmPackageFilesRemove(rpmts ts, rpmte te, rpmfiles files,
|
2012-03-29 21:47:41 +08:00
|
|
|
rpmpsm psm, char ** failedFile);
|
|
|
|
|
2014-04-03 16:14:17 +08:00
|
|
|
RPM_GNUC_INTERNAL
|
|
|
|
int rpmfiArchiveReadToFilePsm(rpmfi fi, FD_t fd, int nodigest, rpmpsm psm);
|
|
|
|
|
2012-01-05 20:48:22 +08:00
|
|
|
RPM_GNUC_INTERNAL
|
|
|
|
void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t amount);
|
2001-02-11 00:47:40 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* H_FSM */
|