rpm  5.4.10
rpmcb.h
Go to the documentation of this file.
1 #ifndef H_RPMCB
2 #define H_RPMCB
3 
8 #include <rpmlog.h>
9 
13 #define rpmSetVerbosity(_lvl) \
14  ((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl))))
15 #define rpmIncreaseVerbosity() \
16  ((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1)))
17 #define rpmDecreaseVerbosity() \
18  ((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1)))
19 #define rpmIsNormal() \
20  (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_NOTICE ))
21 #define rpmIsVerbose() \
22  (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_INFO ))
23 #define rpmIsDebug() \
24  (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_DEBUG ))
25 
26 #endif /* H_RPMCB */
Yet Another syslog(3) API clone.