summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
authornanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2005-12-14 17:29:28 +0000
committernanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2005-12-14 17:29:28 +0000
commitb1259450716ed6fa5b87b397b813754d7f10fd16 (patch)
treecc630a7274330464bbf785b916500a3c8158894a /RPM4
parent314beb7f150aa5d60bcbf5ec85e6fa80ef6f768b (diff)
downloadperl-RPM4-b1259450716ed6fa5b87b397b813754d7f10fd16.tar
perl-RPM4-b1259450716ed6fa5b87b397b813754d7f10fd16.tar.gz
perl-RPM4-b1259450716ed6fa5b87b397b813754d7f10fd16.tar.bz2
perl-RPM4-b1259450716ed6fa5b87b397b813754d7f10fd16.tar.xz
perl-RPM4-b1259450716ed6fa5b87b397b813754d7f10fd16.zip
- add binding for rpm 4.4.3
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@55 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/src/RPM4.xs30
1 files changed, 30 insertions, 0 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index c20bb4f..f88ec91 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -2087,6 +2087,36 @@ rpmlibdep()
XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep)));
#endif
+void
+rpmlibsysinfo(sysinfofile = NULL)
+ char * sysinfofile
+ PREINIT:
+#ifdef RPM4_4_3
+ rpmds Dep = NULL;
+#endif
+ PPCODE:
+#ifdef RPM4_4_3
+ if(!rpmdsSysinfo(&Dep, sysinfofile)) {
+ XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep)));
+ }
+#else
+#endif
+
+void
+rpmlibgetconf(path = NULL)
+ char * path
+ PREINIT:
+#ifdef RPM4_4_3
+ rpmds Dep = NULL;
+#endif
+ PPCODE:
+#ifdef RPM4_4_3
+ if(!rpmdsSysinfo(&Dep, path)) {
+ XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep)));
+ }
+#else
+#endif
+
MODULE = RPM4 PACKAGE = RPM4::Header::Dependencies PREFIX = Dep_
void