rpmsq.h
Go to the documentation of this file.
#ifndef H_RPMSQ
#define H_RPMSQ
#include <rpm/rpmsw.h>
#include <signal.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef SA_SIGINFO
typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
#else
typedef void (*rpmsqAction_t) (int signum);
#endif
int rpmsqIsCaught(int signum);
#ifdef SA_SIGINFO
void rpmsqAction(int signum, siginfo_t * info, void * context);
#else
void rpmsqAction(int signum);
#endif
int rpmsqEnable(int signum, rpmsqAction_t handler);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMSQ */