rpm  4.11.1-rc1
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 */