From: Michael Schroeder Date: Fri, 30 Mar 2012 12:18:27 +0000 (+0200) Subject: - also support mm/arch in bindings X-Git-Tag: BASE-SuSE-Code-12_2-Branch~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bf1617e6bc32f2aa53c5d7ee8014328b600ab15;p=platform%2Fupstream%2Flibsolv.git - also support mm/arch in bindings --- diff --git a/bindings/solv.i b/bindings/solv.i index 43da77f..d036e95 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -362,6 +362,12 @@ typedef VALUE AppObjectPtr; #include "repo_susetags.h" #include "repo_content.h" #endif +#ifdef ENABLE_MDKREPO +#include "repo_mdk.h" +#endif +#ifdef ENABLE_ARCHREPO +#include "repo_arch.h" +#endif #include "solv_xfopen.h" #define true 1 @@ -1156,6 +1162,25 @@ typedef struct { return 1; } #endif +#ifdef ENABLE_MDKREPO + bool add_mdk(FILE *fp, int flags = 0) { + repo_add_mdk($self, fp, flags); + return 1; + } + bool add_mdk_info(FILE *fp, int flags = 0) { + repo_add_mdk($self, fp, flags); + return 1; + } +#endif +#ifdef ENABLE_ARCHREPO + bool add_arch_repo(FILE *fp, int flags = 0) { + repo_add_arch_repo($self, fp, flags); + return 1; + } + Id add_arch_pkg(const char *name, int flags = 0) { + return repo_add_arch_pkg($self, name, flags); + } +#endif void internalize() { repo_internalize($self); }