From 0eef4a1f358a07b5877e7cc52833702ba9c618db Mon Sep 17 00:00:00 2001 From: nanardon Date: Sat, 17 Dec 2005 13:50:38 +0000 Subject: - add functions and test git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@59 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'RPM4/src/RPM4.xs') diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index c59ceec..96d937b 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -2091,7 +2091,7 @@ rpmlibdep() #endif void -rpmlibsysinfo(sysinfofile = NULL) +rpmsysinfodep(sysinfofile = NULL) char * sysinfofile PREINIT: #ifdef RPM4_4_3 @@ -2106,7 +2106,7 @@ rpmlibsysinfo(sysinfofile = NULL) #endif void -rpmlibgetconf(path = NULL) +rpmgetconfdep(path = NULL) char * path PREINIT: #ifdef RPM4_4_3 @@ -2121,7 +2121,7 @@ rpmlibgetconf(path = NULL) #endif void -rpmcpuinfo(path = NULL) +rpmcpuinfodep(path = NULL) char * path PREINIT: #ifdef RPM4_4_3 @@ -2135,7 +2135,36 @@ rpmcpuinfo(path = NULL) #else #endif +void +rpmunamedep() + PREINIT: +#ifdef RPM4_4_3 + rpmds Dep = NULL; +#endif + PPCODE: +#ifdef RPM4_4_3 + if(!rpmdsUname(&Dep, NULL)) { + XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep))); + } +#else +#endif +void +rpmpipedep(cmd, tag = 0) + char * cmd + int tag + PREINIT: +#ifdef RPM4_4_3 + rpmds Dep = NULL; +#endif + PPCODE: +#ifdef RPM4_4_3 + if(!rpmdsPipe(&Dep, tag, cmd)) { + XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep))); + } +#else +#endif + MODULE = RPM4 PACKAGE = RPM4::Header::Dependencies PREFIX = Dep_ void -- cgit v1.2.1