summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-02-16 05:34:22 +0000
committerroot <devnull@localhost>1996-02-16 05:34:22 +0000
commit3f7ef2aa1f6356dd7b710c00fe20dc4da94d89dc (patch)
treec0cfbff4049546e7126aa2146c7dac537f7a328a /lib
parent4dbff32aece57dd3a48adbf6f20b13d6a5421bf6 (diff)
downloadrpm-3f7ef2aa1f6356dd7b710c00fe20dc4da94d89dc.tar.gz
rpm-3f7ef2aa1f6356dd7b710c00fe20dc4da94d89dc.tar.bz2
rpm-3f7ef2aa1f6356dd7b710c00fe20dc4da94d89dc.zip
added getVerbosity()
CVS patchset: 294 CVS date: 1996/02/16 05:34:22
Diffstat (limited to 'lib')
-rw-r--r--lib/messages.c5
-rw-r--r--lib/messages.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/messages.c b/lib/messages.c
index f4d9582a9..5f1ed3665 100644
--- a/lib/messages.c
+++ b/lib/messages.c
@@ -13,6 +13,11 @@ void setVerbosity(int level) {
minLevel = level;
}
+int getVerbosity(void)
+{
+ return minLevel;
+}
+
int isDebug(void)
{
return (minLevel <= MESS_DEBUG);
diff --git a/lib/messages.h b/lib/messages.h
index 72f21581b..e7056dbe8 100644
--- a/lib/messages.h
+++ b/lib/messages.h
@@ -12,6 +12,7 @@
void increaseVerbosity(void);
void setVerbosity(int level);
+int getVerbosity(void);
void message(int level, char * format, ...);
int isVerbose(void);
int isDebug(void);