summaryrefslogtreecommitdiff
path: root/lib/rpmscript.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-09-02 12:56:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-09-02 12:56:55 +0300
commit0b57571990817fa9872b9adfb000930bb09d58c0 (patch)
tree4d8b05ea402ca278743b54562bf64e5728b823eb /lib/rpmscript.h
parentecaf972db05f6b23514a747c4a503268658ac98d (diff)
downloadlibrpm-tizen-0b57571990817fa9872b9adfb000930bb09d58c0.tar.gz
librpm-tizen-0b57571990817fa9872b9adfb000930bb09d58c0.tar.bz2
librpm-tizen-0b57571990817fa9872b9adfb000930bb09d58c0.zip
Make rpmScript opaque
- Add accessor for fetching the script tag, the final piece that psm needs (and will continue to do so) from script internals. This allows the script type to become opaque for real.
Diffstat (limited to 'lib/rpmscript.h')
-rw-r--r--lib/rpmscript.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/rpmscript.h b/lib/rpmscript.h
index 642090f96..1d87b0d95 100644
--- a/lib/rpmscript.h
+++ b/lib/rpmscript.h
@@ -14,14 +14,6 @@ typedef rpmFlags rpmscriptFlags;
typedef struct rpmScript_s * rpmScript;
-struct rpmScript_s {
- rpmTagVal tag; /* script tag */
- char **args; /* scriptlet call arguments */
- char *body; /* script body */
- char *descr; /* description for logging */
- rpmscriptFlags flags; /* flags to control operation */
-};
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -39,6 +31,8 @@ RPM_GNUC_INTERNAL
rpmRC rpmScriptRun(rpmScript script, int arg1, int arg2, FD_t scriptFd,
ARGV_const_t prefixes, int warn_only, int selinux);
+RPM_GNUC_INTERNAL
+rpmTagVal rpmScriptTag(rpmScript script);
#ifdef __cplusplus
}
#endif