diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-04-01 02:27:41 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-04-01 02:27:41 +0000 |
commit | 070a79ed63dffb983db3f19c69f3d8ee4dd59182 (patch) | |
tree | 9888114660561efcbd42ce94cd2f115ac909c486 | |
parent | 505ddd008bf5dcb4a123b5b7e295514e8e09d06b (diff) | |
download | netpbm-mirror-070a79ed63dffb983db3f19c69f3d8ee4dd59182.tar.gz netpbm-mirror-070a79ed63dffb983db3f19c69f3d8ee4dd59182.tar.xz netpbm-mirror-070a79ed63dffb983db3f19c69f3d8ee4dd59182.zip |
Add pm_getMessage()
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1166 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | lib/libpm.c | 11 | ||||
-rw-r--r-- | lib/pm.h | 3 |
2 files changed, 13 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[]) { /*---------------------------------------------------------------------------- diff --git a/lib/pm.h b/lib/pm.h index 55ea4f29..415b8684 100644 --- a/lib/pm.h +++ b/lib/pm.h @@ -102,6 +102,9 @@ pm_proginit(int * const argcP, const char * argv[]); void pm_setMessage(int const newState, int * const oldStateP); +int +pm_getMessage(void); + FILE * pm_tmpfile(void); |