diff options
author | Sam Bingner <sam@bingner.com> | 2019-12-30 16:31:01 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-30 23:10:02 -1000 |
commit | bfe83a62a27bbe8ee960749ff78735a91624f05a (patch) | |
tree | f3b15533444d7313d6118ad2deb4007e05844f05 /apt-pkg/algorithms.h | |
parent | 343cbbac912d9de5c72388bfc4c3bbbcb81506df (diff) |
Add support for JSON output
Diffstat (limited to 'apt-pkg/algorithms.h')
-rw-r--r-- | apt-pkg/algorithms.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h index c5c9f4c69..5ee5e5f62 100644 --- a/apt-pkg/algorithms.h +++ b/apt-pkg/algorithms.h @@ -48,6 +48,9 @@ using std::ostream; #include <apt-pkg/update.h> #include <apt-pkg/upgrade.h> #endif +#ifdef __OBJC__ +#import <Foundation/Foundation.h> +#endif class pkgSimulatePrivate; @@ -87,6 +90,9 @@ public: private: APT_HIDDEN void ShortBreaks(); APT_HIDDEN void Describe(PkgIterator iPkg,std::ostream &out,bool Current,bool Candidate); +#ifdef __OBJC__ + APT_HIDDEN NSMutableDictionary * DescribeJSON(PkgIterator iPkg,bool Current,bool Candidate); +#endif APT_HIDDEN bool RealInstall(PkgIterator Pkg,std::string File); APT_HIDDEN bool RealConfigure(PkgIterator Pkg); APT_HIDDEN bool RealRemove(PkgIterator Pkg,bool Purge); |