rpm 5.2.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmio/rpmcb.h
Go to the documentation of this file.

    00001 #ifndef H_RPMCB
    00002 #define H_RPMCB
    00003
    00008 #include <rpmlog.h>
    00009
    00013 #define rpmSetVerbosity(_lvl)   \
    00014         ((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl))))
    00015 #define rpmIncreaseVerbosity()  \
    00016     ((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1)))
    00017 #define rpmDecreaseVerbosity()  \
    00018         ((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1)))
    00019 #define rpmIsNormal()           \
    00020         (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_NOTICE ))
    00021 #define rpmIsVerbose()          \
    00022         (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_INFO ))
    00023 #define rpmIsDebug()            \
    00024         (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_DEBUG ))
    00025
    00026 #endif  /* H_RPMCB */