rpm  4.12.0.1
rpmsq.h
Go to the documentation of this file.
1 #ifndef H_RPMSQ
2 #define H_RPMSQ
3 
8 #include <rpm/rpmsw.h>
9 #include <signal.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
21 #ifdef SA_SIGINFO
22 typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
23 #else
24 typedef void (*rpmsqAction_t) (int signum);
25 #endif
26 
33 int rpmsqIsCaught(int signum);
34 
41 #ifdef SA_SIGINFO
42 void rpmsqAction(int signum, siginfo_t * info, void * context);
43 #else
44 void rpmsqAction(int signum);
45 #endif
46 
53 int rpmsqEnable(int signum, rpmsqAction_t handler);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* H_RPMSQ */
void(* rpmsqAction_t)(int signum)
Default signal handler prototype.
Definition: rpmsq.h:24
void rpmsqAction(int signum)
Default signal handler.
int rpmsqIsCaught(int signum)
Test if given signal has been caught (while signals blocked).
int rpmsqEnable(int signum, rpmsqAction_t handler)
Enable or disable a signal handler.