Eliminate rpm cli callback internals from the API
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 3 Jan 2012 09:56:37 +0000 (11:56 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 3 Jan 2012 10:12:12 +0000 (12:12 +0200)
- rpmcliHashes*, and rpmcliProgress* and rpmcliPackagesTotal are
  implementation details of rpmShowProgress() and are useless outside
  of it. Make them static, these shouldn't have been exported to
  begin with.

lib/rpmcli.h
lib/rpminstall.c

index 15a4c4c..1e92c50 100644 (file)
@@ -293,12 +293,6 @@ typedef rpmFlags rpmInstallFlags;
 #define UNINSTALL_NODEPS INSTALL_NODEPS
 #define UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES
 
-extern int rpmcliPackagesTotal;
-extern int rpmcliHashesCurrent;
-extern int rpmcliHashesTotal;
-extern int rpmcliProgressCurrent;
-extern int rpmcliProgressTotal;
-
 /** \ingroup rpmcli
  * The rpm CLI generic transaction callback handler.
  * @todo Remove headerFormat() from the progress callback.
index 6082db0..7573c24 100644 (file)
 #include "lib/manifest.h"
 #include "debug.h"
 
-int rpmcliPackagesTotal = 0;
-int rpmcliHashesCurrent = 0;
-int rpmcliHashesTotal = 0;
-int rpmcliProgressCurrent = 0;
-int rpmcliProgressTotal = 0;
+static int rpmcliPackagesTotal = 0;
+static int rpmcliHashesCurrent = 0;
+static int rpmcliHashesTotal = 0;
+static int rpmcliProgressCurrent = 0;
+static int rpmcliProgressTotal = 0;
 
 /**
  * Print a CLI progress bar.