diff options
author | Stef Walter <stefw@gnome.org> | 2012-08-23 19:17:46 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-02-05 09:42:34 +0100 |
commit | cba41e5a46893b16cfbd845d55285894f4a43408 (patch) | |
tree | f35bfd5bbe3c904eeae8f658a333dca5da24fb45 /common | |
parent | 43a3f5df8124bb85567feb18975d19fa1b639b9f (diff) |
Add internal function for turning on messages
To be used from tests
Diffstat (limited to 'common')
-rw-r--r-- | common/library.c | 8 | ||||
-rw-r--r-- | common/library.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/common/library.c b/common/library.c index d0c246c..de340bb 100644 --- a/common/library.c +++ b/common/library.c @@ -116,6 +116,14 @@ p11_message_quiet (void) p11_unlock (); } +void +p11_message_loud (void) +{ + p11_lock (); + print_messages = true; + p11_unlock (); +} + const char* p11_message_last (void) { diff --git a/common/library.h b/common/library.h index f7d5058..338dc0f 100644 --- a/common/library.h +++ b/common/library.h @@ -60,6 +60,8 @@ void p11_message_clear (void); void p11_message_quiet (void); +void p11_message_loud (void); + #ifdef OS_WIN32 /* No implementation, because done by DllMain */ |