Rename RPMLOG_CONT to RPMLOG_DEFAULT to make purpose clearer (hopefully ;)
This commit is contained in:
parent
a5f65886f8
commit
037ceff668
|
@ -169,7 +169,7 @@ static void vrpmlog (unsigned code, const char *fmt, va_list ap)
|
|||
#endif
|
||||
char *msgbuf, *msg;
|
||||
int msgnb = BUFSIZ, nb;
|
||||
int cbrc = RPMLOG_CONT;
|
||||
int cbrc = RPMLOG_DEFAULT;
|
||||
int needexit = 0;
|
||||
struct rpmlogRec_s rec;
|
||||
|
||||
|
@ -221,7 +221,7 @@ static void vrpmlog (unsigned code, const char *fmt, va_list ap)
|
|||
needexit += cbrc & RPMLOG_EXIT;
|
||||
}
|
||||
|
||||
if (cbrc & RPMLOG_CONT) {
|
||||
if (cbrc & RPMLOG_DEFAULT) {
|
||||
cbrc = rpmlogDefault(&rec);
|
||||
needexit += cbrc & RPMLOG_EXIT;
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@ RPMCODE facilitynames[] =
|
|||
/* \ingroup rpmlog
|
||||
* Option flags for callback return value.
|
||||
*/
|
||||
#define RPMLOG_CONT 0x01 /*!< perform default logging */
|
||||
#define RPMLOG_DEFAULT 0x01 /*!< perform default logging */
|
||||
#define RPMLOG_EXIT 0x02 /*!< exit after logging */
|
||||
|
||||
/** \ingroup rpmlog
|
||||
|
@ -165,8 +165,9 @@ typedef void * rpmlogCallbackData;
|
|||
* @param rec rpmlog record
|
||||
* @param data private callback data
|
||||
* @return flags to define further behavior:
|
||||
* RPMLOG_CONT to continue to default logger,
|
||||
* RPMLOG_EXIT to exit after processing
|
||||
* RPMLOG_DEFAULT to perform default logging,
|
||||
* RPMLOG_EXIT to exit after processing,
|
||||
* 0 to return after callback
|
||||
*/
|
||||
typedef int (*rpmlogCallback) (rpmlogRec rec, rpmlogCallbackData data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue