+
+ // Do the installation
+#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
+ OrderResult DoInstall(APT::Progress::PackageManager *progress);
+ // compat
+ APT_DEPRECATED OrderResult DoInstall(int statusFd=-1);
+#else
+ OrderResult DoInstall(int statusFd=-1);
+#endif
+
+ // stuff that needs to be done before the fork() of a library that
+ // uses apt
+ OrderResult DoInstallPreFork() {
+ Res = OrderInstall();
+ return Res;
+ };
+#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
+ // stuff that needs to be done after the fork
+ OrderResult DoInstallPostFork(APT::Progress::PackageManager *progress);
+ // compat
+ APT_DEPRECATED OrderResult DoInstallPostFork(int statusFd=-1);
+#else
+ OrderResult DoInstallPostFork(int statusFd=-1);
+#endif
+
+ // ?