12typedef enum rpmScriptletExecutionFlow_e {
13 RPMSCRIPTLET_NONE = 0,
14 RPMSCRIPTLET_FORK = 1 << 0,
15 RPMSCRIPTLET_EXEC = 1 << 1
16} rpmScriptletExecutionFlow;
25 FAF_UNOWNED = (1 << 31)
27typedef rpmFlags rpmFileActionFlags;
34#define XFA_MASK 0x0000ffff
35#define XFAF_MASK ~(XFA_MASK)
36#define XFO_ACTION(_a) ((_a) & XFA_MASK)
37#define XFO_FLAGS(_a) ((_a) & XFAF_MASK)
40typedef rpmRC (*plugin_init_func)(rpmPlugin plugin,
rpmts ts);
41typedef void (*plugin_cleanup_func)(rpmPlugin plugin);
42typedef rpmRC (*plugin_tsm_pre_func)(rpmPlugin plugin,
rpmts ts);
43typedef rpmRC (*plugin_tsm_post_func)(rpmPlugin plugin,
rpmts ts,
int res);
44typedef rpmRC (*plugin_psm_pre_func)(rpmPlugin plugin, rpmte te);
45typedef rpmRC (*plugin_psm_post_func)(rpmPlugin plugin, rpmte te,
int res);
46typedef rpmRC (*plugin_scriptlet_pre_func)(rpmPlugin plugin,
47 const char *s_name,
int type);
48typedef rpmRC (*plugin_scriptlet_fork_post_func)(rpmPlugin plugin,
49 const char *path,
int type);
50typedef rpmRC (*plugin_scriptlet_post_func)(rpmPlugin plugin,
51 const char *s_name,
int type,
53typedef rpmRC (*plugin_fsm_file_pre_func)(rpmPlugin plugin, rpmfi fi,
54 const char* path, mode_t file_mode,
56typedef rpmRC (*plugin_fsm_file_post_func)(rpmPlugin plugin, rpmfi fi,
57 const char* path, mode_t file_mode,
59typedef rpmRC (*plugin_fsm_file_prepare_func)(rpmPlugin plugin, rpmfi fi,
60 int fd,
const char* path,
67 plugin_init_func init;
68 plugin_cleanup_func cleanup;
70 plugin_tsm_pre_func tsm_pre;
71 plugin_tsm_post_func tsm_post;
73 plugin_psm_pre_func psm_pre;
74 plugin_psm_post_func psm_post;
76 plugin_scriptlet_pre_func scriptlet_pre;
77 plugin_scriptlet_fork_post_func scriptlet_fork_post;
78 plugin_scriptlet_post_func scriptlet_post;
80 plugin_fsm_file_pre_func fsm_file_pre;
81 plugin_fsm_file_post_func fsm_file_post;
82 plugin_fsm_file_prepare_func fsm_file_prepare;
94const char *rpmPluginName(rpmPlugin plugin);
101const char *rpmPluginOpts(rpmPlugin plugin);
108void rpmPluginSetData(rpmPlugin plugin,
void *data);
115void * rpmPluginGetData(rpmPlugin plugin);
rpmFlags rpmFsmOp
Definition rpmplugin.h:32
rpmFileActionFlags_e
Definition rpmplugin.h:23
struct rpmts_s * rpmts
Definition rpmtypes.h:63
Definition rpmplugin.h:65