diff options
-rw-r--r-- | RPM4/src/RPM4.xs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index a4c8fa3..b50e618 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -2116,7 +2116,23 @@ rpmlibgetconf(path = NULL) } #else #endif - + +void +rpmcpuinfo(path = NULL) + char * path + PREINIT: +#ifdef RPM4_4_3 + rpmds Dep = NULL; +#endif + PPCODE: +#ifdef RPM4_4_3 + if(!rpmdsCpuinfo(&Dep, path)) { + XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep))); + } +#else +#endif + + MODULE = RPM4 PACKAGE = RPM4::Header::Dependencies PREFIX = Dep_ void |