summaryrefslogtreecommitdiff
path: root/lib/fsm.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-01-05 14:24:33 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-01-05 16:05:10 +0200
commitef75cadf038ab919f3ec37cf5c5ee77fd52b5c82 (patch)
treee50e59d9a2605df0eddd90e8b190e7575eadd32c /lib/fsm.h
parent91a58bd423da4841e0b2fb569599f19f61e95174 (diff)
downloadlibrpm-tizen-ef75cadf038ab919f3ec37cf5c5ee77fd52b5c82.tar.gz
librpm-tizen-ef75cadf038ab919f3ec37cf5c5ee77fd52b5c82.tar.bz2
librpm-tizen-ef75cadf038ab919f3ec37cf5c5ee77fd52b5c82.zip
Pass and remember the controlling psm (if any) in fsm
Diffstat (limited to 'lib/fsm.h')
-rw-r--r--lib/fsm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fsm.h b/lib/fsm.h
index 22aa935a4..5d33fce0b 100644
--- a/lib/fsm.h
+++ b/lib/fsm.h
@@ -104,6 +104,7 @@ typedef rpmFlags cpioMapFlags;
typedef struct fsmIterator_s * FSMI_t;
typedef struct fsm_s * FSM_t;
+typedef struct rpmpsm_s * rpmpsm;
typedef struct hardLink_s * hardLink_t;
@@ -163,6 +164,8 @@ struct fsm_s {
fileStage nstage; /*!< Next file stage. */
struct stat sb; /*!< Current file stat(2) info. */
struct stat osb; /*!< Original file stat(2) info. */
+
+ rpmpsm psm; /*!< "parent" package state machine */
};
#ifdef __cplusplus
@@ -192,6 +195,7 @@ FSM_t freeFSM(FSM_t fsm);
* @param ts transaction set
* @param fi transaction element file info
* @param cfd
+ * @param psm owner psm (or NULL)
* @retval archiveSize pointer to archive size
* @retval failedFile pointer to first file name that failed (malloced)
* @return 0 on success
@@ -201,6 +205,7 @@ int fsmSetup(FSM_t fsm, fileStage goal,
rpmte te,
rpmfi fi,
FD_t cfd,
+ rpmpsm psm,
rpm_loff_t * archiveSize,
char ** failedFile);