about summary refs log tree commit diff
path: root/lib/libpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpm.c')
-rw-r--r--lib/libpm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libpm.c b/lib/libpm.c
index 467a25f5..c563c8b1 100644
--- a/lib/libpm.c
+++ b/lib/libpm.c
@@ -807,7 +807,8 @@ pm_proginit(int * const argcP, const char * argv[]) {
 
 
 void
-pm_setMessage(int const newState, int * const oldStateP) {
+pm_setMessage(int   const newState,
+              int * const oldStateP) {
     
     if (oldStateP)
         *oldStateP = pm_showmessages;
@@ -817,6 +818,14 @@ pm_setMessage(int const newState, int * const oldStateP) {
 
 
 
+int
+pm_getMessage(void) {
+
+    return pm_showmessages;
+}
+
+
+
 char *
 pm_arg0toprogname(const char arg0[]) {
 /*----------------------------------------------------------------------------